mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTVDM] Use strsafe functions for concantenation of strings in otvdm code. (#4124)
This commit is contained in:
parent
990ba54537
commit
0609db55d7
1 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
#include <strsafe.h>
|
||||||
|
|
||||||
#include "emulator.h"
|
#include "emulator.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
@ -803,9 +804,9 @@ WORD DosCreateProcess(IN LPCSTR ProgramName,
|
||||||
CHAR ExpName[MAX_PATH];
|
CHAR ExpName[MAX_PATH];
|
||||||
|
|
||||||
ExpandEnvironmentStringsA(AppName, ExpName, ARRAYSIZE(ExpName) - 1);
|
ExpandEnvironmentStringsA(AppName, ExpName, ARRAYSIZE(ExpName) - 1);
|
||||||
strcat(ExpName, "\""); // Add double-quote before ProgramName
|
StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote before ProgramName
|
||||||
strcat(ExpName, ProgramName); // Append Program name
|
StringCbCatA(ExpName, sizeof(ExpName), ProgramName); // Append Program name
|
||||||
strcat(ExpName, "\""); // Add double-quote after ProgramName
|
StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote after ProgramName
|
||||||
|
|
||||||
ZeroMemory(&pi, sizeof(pi));
|
ZeroMemory(&pi, sizeof(pi));
|
||||||
ZeroMemory(&si, sizeof(si));
|
ZeroMemory(&si, sizeof(si));
|
||||||
|
|
Loading…
Reference in a new issue