Bugfix: Allow lpCommandLine == NULL in CreateProcess().
This commit is contained in:
parent
175989dbd4
commit
aa23b0bd63
@ -837,6 +837,7 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
|
|||||||
*p = '\0';
|
*p = '\0';
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
if (lpCommandLine)
|
||||||
if (strlen(name)) {
|
if (strlen(name)) {
|
||||||
get_executable_name(lpCommandLine, cmdline, sizeof(cmdline), &p, TRUE);
|
get_executable_name(lpCommandLine, cmdline, sizeof(cmdline), &p, TRUE);
|
||||||
strcat(cmdline, p);
|
strcat(cmdline, p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user