Translate the returned hInstApp from the unicode worker function.

This commit is contained in:
Dmitry Timoshkov 2004-02-12 20:04:09 +00:00 committed by Alexandre Julliard
parent 850ee4ba4e
commit ccc57b323d
1 changed files with 6 additions and 0 deletions

View File

@ -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);