Commit e3060b4d authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

msvcrt_spawn should free STARTUPINFOA's lpReserved2, not its address.

parent 7fafd5cc
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment