From cd4363aca8ac64fd20924e01450ac5c8479fbbb5 Mon Sep 17 00:00:00 2001 From: anders_k Date: Wed, 18 Feb 2015 18:52:41 +0000 Subject: [PATCH] Exec[Wait] now sets the CREATE_DEFAULT_ERROR_MODE flag when creating a new process git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6579 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/history.but | 2 ++ Source/exehead/util.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;