Commit 632d0c2d authored by Duane Clark's avatar Duane Clark Committed by Alexandre Julliard

WS_CAPTION is a two bit field, so test appropriately.

parent 7a78ca04
...@@ -1142,8 +1142,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom, ...@@ -1142,8 +1142,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
/* Set the window menu */ /* Set the window menu */
if ((wndPtr->dwStyle & WS_CAPTION || wndPtr->dwExStyle & WS_EX_APPWINDOW) if (((wndPtr->dwStyle & (WS_CAPTION|WS_CHILD)) == WS_CAPTION) ||
&& !( wndPtr->dwStyle & WS_CHILD) ) (wndPtr->dwExStyle & WS_EX_APPWINDOW))
{ {
if (cs->hMenu) SetMenu(hwnd, cs->hMenu); if (cs->hMenu) SetMenu(hwnd, cs->hMenu);
else else
......
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