oops
authorClaus Gittinger <cg@exept.de>
Fri, 10 Aug 2018 13:31:47 +0200
changeset 23273 937be20520a7
parent 23272 943caf3090c8
child 23274 acec2dba4092
oops
Win32OperatingSystem.st
--- a/Win32OperatingSystem.st	Fri Aug 10 12:03:54 2018 +0200
+++ b/Win32OperatingSystem.st	Fri Aug 10 13:31:47 2018 +0200
@@ -4411,12 +4411,13 @@
      && ((lpDirectoryArg == nil) || __isStringLike(lpDirectoryArg) || __isUnicode16String(lpDirectoryArg))
     ) {
 	// hProcess member receives the process handle
-	shExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
 	wchar_t _wFileArg[MAXPATHLEN+1];
 	wchar_t _wParametersArg[MAXPATHLEN+1];
 	wchar_t _wDirectoryArg[MAXPATHLEN+1];
 	wchar_t _wVerbArg[128];
 
+	shExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
+
 	_makeWchar(lpOperationArg, _wVerbArg, sizeof(_wVerbArg));
 	_makeWchar(lpFileArg, _wFileArg, sizeof(_wFileArg));
 	_makeWchar(lpParametersArg, _wParametersArg, sizeof(_wParametersArg));