Commit 803146d2 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Simplify 'sei' structure initialization in ShellExecuteA/W.

parent c23cb51d
...@@ -1360,7 +1360,6 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpOperation,LPCSTR lpFile, ...@@ -1360,7 +1360,6 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpOperation,LPCSTR lpFile,
LPCSTR lpParameters,LPCSTR lpDirectory, INT iShowCmd) LPCSTR lpParameters,LPCSTR lpDirectory, INT iShowCmd)
{ {
SHELLEXECUTEINFOA sei; SHELLEXECUTEINFOA sei;
HANDLE hProcess = 0;
TRACE("%p,%s,%s,%s,%s,%d\n", TRACE("%p,%s,%s,%s,%s,%d\n",
hWnd, debugstr_a(lpOperation), debugstr_a(lpFile), hWnd, debugstr_a(lpOperation), debugstr_a(lpFile),
...@@ -1378,7 +1377,7 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpOperation,LPCSTR lpFile, ...@@ -1378,7 +1377,7 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpOperation,LPCSTR lpFile,
sei.lpClass = 0; sei.lpClass = 0;
sei.hkeyClass = 0; sei.hkeyClass = 0;
sei.dwHotKey = 0; sei.dwHotKey = 0;
sei.hProcess = hProcess; sei.hProcess = 0;
ShellExecuteExA (&sei); ShellExecuteExA (&sei);
return sei.hInstApp; return sei.hInstApp;
...@@ -1450,7 +1449,6 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, ...@@ -1450,7 +1449,6 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile,
LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd) LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
{ {
SHELLEXECUTEINFOW sei; SHELLEXECUTEINFOW sei;
HANDLE hProcess = 0;
TRACE("\n"); TRACE("\n");
sei.cbSize = sizeof(sei); sei.cbSize = sizeof(sei);
...@@ -1465,7 +1463,7 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, ...@@ -1465,7 +1463,7 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile,
sei.lpClass = 0; sei.lpClass = 0;
sei.hkeyClass = 0; sei.hkeyClass = 0;
sei.dwHotKey = 0; sei.dwHotKey = 0;
sei.hProcess = hProcess; sei.hProcess = 0;
ShellExecuteExW32 (&sei, SHELL_ExecuteW); ShellExecuteExW32 (&sei, SHELL_ExecuteW);
return sei.hInstApp; return sei.hInstApp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment