Don't fallback to LoadMenu16 when the window is created with a null

instance.
This commit is contained in:
Alexandre Julliard 2005-09-07 09:28:08 +00:00
parent c3d87e7c69
commit 42744ff420
1 changed files with 1 additions and 1 deletions

View File

@ -1039,7 +1039,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
LPCSTR menuName = (LPCSTR)GetClassLongPtrA( hwnd, GCLP_MENUNAME );
if (menuName)
{
if (HIWORD(cs->hInstance))
if (!cs->hInstance || HIWORD(cs->hInstance))
cs->hMenu = LoadMenuA(cs->hInstance,menuName);
else
cs->hMenu = HMENU_32(LoadMenu16(HINSTANCE_16(cs->hInstance),menuName));