Translate the returned hInstApp from the unicode worker function
Dmitry Timoshkov
dmitry at baikal.ru
Thu Feb 12 00:14:58 CST 2004
Hello,
This patch fixes a regression introduced after unicodification
of the ShellExecute interface.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Translate the returned hInstApp from the unicode worker function.
--- cvs/hq/wine/dlls/shell32/shlexec.c Tue Jan 20 19:04:56 2004
+++ wine/dlls/shell32/shlexec.c Thu Feb 12 13:58:32 2004
@@ -160,6 +160,8 @@ static UINT SHELL_ExecuteW(WCHAR *lpCmd,
retval = ERROR_BAD_FORMAT;
}
+ TRACE("returning %u\n", retval);
+
sei->hInstApp = (HINSTANCE)retval;
return retval;
}
@@ -842,6 +844,8 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEX
retval = (UINT)ShellExecuteW(sei->hwnd, lpOperation, lpstrTmpFile, NULL, NULL, 0);
}
+ TRACE("retval %u\n", retval);
+
if (retval <= 32)
{
sei->hInstApp = (HINSTANCE)retval;
@@ -923,6 +927,8 @@ BOOL WINAPI ShellExecuteExA (LPSHELLEXEC
seiW.lpClass = NULL;
ret = ShellExecuteExW32 (&seiW, SHELL_ExecuteW);
+
+ sei->hInstApp = seiW.hInstApp;
if (wVerb) SHFree(wVerb);
if (wFile) SHFree(wFile);
More information about the wine-patches
mailing list