Fix return code abuse in commdlg
Mike Hearn
mike at navi.cx
Wed May 11 19:54:22 CDT 2005
This fix lets me open a DLL in PE Explorer by double clicking on it in the file picker.
Mike Hearn <mike at navi.cx>
Fix return code abuse in commdlg
Index: dlls/commdlg/filedlgbrowser.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlgbrowser.c,v
retrieving revision 1.50
diff -u -p -d -r1.50 filedlgbrowser.c
--- dlls/commdlg/filedlgbrowser.c 19 Apr 2005 09:47:42 -0000 1.50
+++ dlls/commdlg/filedlgbrowser.c 12 May 2005 00:53:23 -0000
@@ -776,7 +776,8 @@ HRESULT WINAPI IShellBrowserImpl_ICommDl
else
{
/* Tell the dialog that the user selected a file */
- hRes = PostMessageA(This->hwndOwner, WM_COMMAND, IDOK, 0L);
+ PostMessageA(This->hwndOwner, WM_COMMAND, IDOK, 0L);
+ hRes = S_OK;
}
/* Free memory used by pidl */
More information about the wine-patches
mailing list