Commit 42744ff4 authored by Alexandre Julliard's avatar Alexandre Julliard

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

instance.
parent c3d87e7c
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment