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:
parent
7aec6c7e74
commit
183a176b32
1 changed files with 455 additions and 451 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue