shlexec.c: fix ShellExecuteExA

Aric Stewart aric at codeweavers.com
Thu Mar 17 10:43:07 CST 2005


for ShellExecuteExA we need to copy out the hProcess value from the W structure if we are going to have it be valid.

-------------- next part --------------
Index: dlls/shell32/shlexec.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlexec.c,v
retrieving revision 1.60
diff -u -u -r1.60 shlexec.c
--- dlls/shell32/shlexec.c	14 Feb 2005 11:03:21 -0000	1.60
+++ dlls/shell32/shlexec.c	17 Mar 2005 16:40:29 -0000
@@ -1398,6 +1398,9 @@
 
     sei->hInstApp = seiW.hInstApp;
 
+    if (sei->fMask & SEE_MASK_NOCLOSEPROCESS)
+        sei->hProcess = seiW.hProcess;
+
     if (wVerb) SHFree(wVerb);
     if (wFile) SHFree(wFile);
     if (wParameters) SHFree(wParameters);


More information about the wine-patches mailing list