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

This commit is contained in:
Juan Lang 2004-12-06 16:08:36 +00:00 committed by Alexandre Julliard
parent 7fafd5ccc2
commit e3060b4d98

View file

@ -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: