msvcrt_spawn should free STARTUPINFOA's lpReserved2, not its address.
This commit is contained in:
parent
7fafd5ccc2
commit
e3060b4d98
|
@ -57,11 +57,11 @@ static int msvcrt_spawn(int flags, const char* exe, char* cmdline, char* env)
|
|||
env, NULL, &si, &pi))
|
||||
{
|
||||
msvcrt_set_errno(GetLastError());
|
||||
MSVCRT_free(&si.lpReserved2);
|
||||
MSVCRT_free(si.lpReserved2);
|
||||
return -1;
|
||||
}
|
||||
|
||||
MSVCRT_free(&si.lpReserved2);
|
||||
MSVCRT_free(si.lpReserved2);
|
||||
switch(flags)
|
||||
{
|
||||
case MSVCRT__P_WAIT:
|
||||
|
|
Loading…
Reference in New Issue