diff --git a/Docs/src/history.but b/Docs/src/history.but index 4fe29586..5fa11c17 100644 --- a/Docs/src/history.but +++ b/Docs/src/history.but @@ -12,6 +12,8 @@ Released on ?, 201? \S2{} Minor Changes +\b Exec[Wait] sets the CREATE_DEFAULT_ERROR_MODE flag when creating a process + \b Fixed minor issues in the Pascal NSIS plug-in SDK and removed the extrap global variable \S1{v3.0b2-cl} Changelog diff --git a/Source/exehead/util.c b/Source/exehead/util.c index b45518ef..b9bf86e7 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -61,7 +61,7 @@ HANDLE NSISCALL myCreateProcess(TCHAR *cmd) PROCESS_INFORMATION ProcInfo; static STARTUPINFO StartUp; StartUp.cb=sizeof(StartUp); - if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &StartUp, &ProcInfo)) + if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE, NULL, NULL, &StartUp, &ProcInfo)) return NULL; CloseHandle(ProcInfo.hThread); return ProcInfo.hProcess;