mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[NTVDM] Use strsafe functions for concantenation of strings in otvdm code. (#4124)
This commit is contained in:
parent
990ba54537
commit
0609db55d7
@ -13,6 +13,7 @@
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
#include <strsafe.h>
|
||||
|
||||
#include "emulator.h"
|
||||
#include "cpu/cpu.h"
|
||||
@ -803,9 +804,9 @@ WORD DosCreateProcess(IN LPCSTR ProgramName,
|
||||
CHAR ExpName[MAX_PATH];
|
||||
|
||||
ExpandEnvironmentStringsA(AppName, ExpName, ARRAYSIZE(ExpName) - 1);
|
||||
strcat(ExpName, "\""); // Add double-quote before ProgramName
|
||||
strcat(ExpName, ProgramName); // Append Program name
|
||||
strcat(ExpName, "\""); // Add double-quote after ProgramName
|
||||
StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote before ProgramName
|
||||
StringCbCatA(ExpName, sizeof(ExpName), ProgramName); // Append Program name
|
||||
StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote after ProgramName
|
||||
|
||||
ZeroMemory(&pi, sizeof(pi));
|
||||
ZeroMemory(&si, sizeof(si));
|
||||
|
Loading…
Reference in New Issue
Block a user