probably exit nsExec's internal process with ExitProcess

without this, if running nsExec immediately after booting, it'd always return 0 even if CreateProcess failed to execute
more @ http://forums.winamp.com/showthread.php?threadid=279683

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5363 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-11-09 18:29:18 +00:00
parent 7aec6c7e74
commit 183a176b32

View file

@ -446,8 +446,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
} while ( Ret == STILL_ACTIVE );
CloseHandle (pi.hProcess);
CloseHandle (pi.hThread);
return Ret;
ExitProcess(Ret);
}
else
return STATUS_ILLEGAL_INSTRUCTION;
{
ExitProcess(STATUS_ILLEGAL_INSTRUCTION);
}
return 0; // dummy
}