WS_CAPTION is a two bit field, so test appropriately.

This commit is contained in:
Duane Clark 2003-01-08 19:53:47 +00:00 committed by Alexandre Julliard
parent 7a78ca04ed
commit 632d0c2df0

View file

@ -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