A menu WS_CAPTION fix

Duane Clark dclark at akamail.com
Wed Jan 8 09:49:13 CST 2003


As Dimitry pointed out.

Changelog:
	WS_CAPTION is a two bit field, so test appropriately.

-------------- next part --------------
Index: windows/win.c
===================================================================
RCS file: /home/wine/wine/windows/win.c,v
retrieving revision 1.213
diff -u -r1.213 win.c
--- windows/win.c	7 Jan 2003 19:46:31 -0000	1.213
+++ windows/win.c	8 Jan 2003 15:46:47 -0000
@@ -1142,7 +1142,7 @@
 
     /* Set the window menu */
 
-    if ((wndPtr->dwStyle & WS_CAPTION || wndPtr->dwExStyle & WS_EX_APPWINDOW)
+    if (((wndPtr->dwStyle & WS_CAPTION == WS_CAPTION) || wndPtr->dwExStyle & WS_EX_APPWINDOW)
         && !( wndPtr->dwStyle & WS_CHILD) )
     {
         if (cs->hMenu) SetMenu(hwnd, cs->hMenu);


More information about the wine-patches mailing list