WS_CAPTION is a two bit field, so test appropriately.
This commit is contained in:
parent
7a78ca04ed
commit
632d0c2df0
|
@ -1142,8 +1142,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
|
|||
|
||||
/* Set the window menu */
|
||||
|
||||
if ((wndPtr->dwStyle & WS_CAPTION || wndPtr->dwExStyle & WS_EX_APPWINDOW)
|
||||
&& !( wndPtr->dwStyle & WS_CHILD) )
|
||||
if (((wndPtr->dwStyle & (WS_CAPTION|WS_CHILD)) == WS_CAPTION) ||
|
||||
(wndPtr->dwExStyle & WS_EX_APPWINDOW))
|
||||
{
|
||||
if (cs->hMenu) SetMenu(hwnd, cs->hMenu);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue