USER32: WIN_CreateWindowEx
Peter Oberndorfer
kumbayo84 at arcor.de
Thu Jul 28 10:56:08 CDT 2005
Hi
This patch allowes PEview to continue starting.
Greetings Peter
Changelog:
Allow window to have a menu even if hInstance is 0
Index: dlls/user/win.c
===================================================================
RCS file: /home/wine/wine/dlls/user/win.c,v
retrieving revision 1.16
diff -u -p -r1.16 win.c
--- dlls/user/win.c 19 Jul 2005 11:51:31 -0000 1.16
+++ dlls/user/win.c 28 Jul 2005 15:47:44 -0000
@@ -1031,10 +1031,10 @@ static HWND WIN_CreateWindowEx( CREATEST
LPCSTR menuName = (LPCSTR)GetClassLongPtrA( hwnd, GCLP_MENUNAME );
if (menuName)
{
- if (HIWORD(cs->hInstance))
- cs->hMenu = LoadMenuA(cs->hInstance,menuName);
- else
+ if (type == WIN_PROC_16)
cs->hMenu = HMENU_32(LoadMenu16(HINSTANCE_16(cs->hInstance),menuName));
+ else
+ cs->hMenu = LoadMenuA(cs->hInstance,menuName);
if (cs->hMenu) MENU_SetMenu( hwnd, cs->hMenu );
}
More information about the wine-patches
mailing list