shlexec.c

Martin Fuchs martin-fuchs at gmx.net
Sat Oct 1 03:15:15 CDT 2005


Changelog: simplify 'sei' structure initialization in ShellExecuteA/W


Index: shlexec.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlexec.c,v
retrieving revision 1.72
diff -u -p -d -r1.72 shlexec.c
--- shlexec.c	12 Sep 2005 12:10:57 -0000	1.72
+++ shlexec.c	1 Oct 2005 08:14:18 -0000
@@ -1360,7 +1393,6 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd
                                LPCSTR lpParameters,LPCSTR lpDirectory, INT iShowCmd)
 {
     SHELLEXECUTEINFOA sei;
-    HANDLE hProcess = 0;
 
     TRACE("%p,%s,%s,%s,%s,%d\n",
           hWnd, debugstr_a(lpOperation), debugstr_a(lpFile),
@@ -1378,7 +1410,7 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd
     sei.lpClass = 0;
     sei.hkeyClass = 0;
     sei.dwHotKey = 0;
-    sei.hProcess = hProcess;
+    sei.hProcess = 0;
 
     ShellExecuteExA (&sei);
     return sei.hInstApp;
@@ -1450,7 +1482,6 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd
                                LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
 {
     SHELLEXECUTEINFOW sei;
-    HANDLE hProcess = 0;
 
     TRACE("\n");
     sei.cbSize = sizeof(sei);
@@ -1465,7 +1496,7 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd
     sei.lpClass = 0;
     sei.hkeyClass = 0;
     sei.dwHotKey = 0;
-    sei.hProcess = hProcess;
+    sei.hProcess = 0;
 
     ShellExecuteExW32 (&sei, SHELL_ExecuteW);
     return sei.hInstApp;




More information about the wine-patches mailing list