Commit ccc57b32 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Translate the returned hInstApp from the unicode worker function.

parent 850ee4ba
......@@ -160,6 +160,8 @@ static UINT SHELL_ExecuteW(WCHAR *lpCmd, void *env, LPSHELLEXECUTEINFOW sei, BOO
retval = ERROR_BAD_FORMAT;
}
TRACE("returning %u\n", retval);
sei->hInstApp = (HINSTANCE)retval;
return retval;
}
......@@ -842,6 +844,8 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun
retval = (UINT)ShellExecuteW(sei->hwnd, lpOperation, lpstrTmpFile, NULL, NULL, 0);
}
TRACE("retval %u\n", retval);
if (retval <= 32)
{
sei->hInstApp = (HINSTANCE)retval;
......@@ -924,6 +928,8 @@ BOOL WINAPI ShellExecuteExA (LPSHELLEXECUTEINFOA sei)
ret = ShellExecuteExW32 (&seiW, SHELL_ExecuteW);
sei->hInstApp = seiW.hInstApp;
if (wVerb) SHFree(wVerb);
if (wFile) SHFree(wFile);
if (wParameters) SHFree(wParameters);
......
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