Commit in reactos/lib/user32/windows on MAIN
menu.c+7-31.60 -> 1.61
little fix

reactos/lib/user32/windows
menu.c 1.60 -> 1.61
diff -u -r1.60 -r1.61
--- menu.c	2 Apr 2004 19:00:56 -0000	1.60
+++ menu.c	2 Apr 2004 19:14:44 -0000	1.61
@@ -21,7 +21,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: menu.c,v 1.60 2004/04/02 19:00:56 weiden Exp $
+/* $Id: menu.c,v 1.61 2004/04/02 19:14:44 weiden Exp $
  *
  * PROJECT:         ReactOS user32.dll
  * FILE:            lib/user32/windows/menu.c
@@ -1989,7 +1989,9 @@
 {
   BOOL Gray;
   UINT DefItem;
+  #if 0
   MENUITEMINFOW mii;
+  #endif
 
   Gray = 0 == (Style & WS_THICKFRAME) || 0 != (Style & (WS_MAXIMIZE | WS_MINIMIZE));
   EnableMenuItem(Menu, SC_SIZE, (Gray ? MF_GRAYED : MF_ENABLED));
@@ -2025,13 +2027,15 @@
       DefItem = SC_CLOSE;
     }
   }
+  #if 0
   mii.cbSize = sizeof(MENUITEMINFOW);
   mii.fMask = MIIM_STATE;
-  if(GetMenuItemInfoW(Menu, DefItem, FALSE, &mii) && 
+  if((DefItem != SC_CLOSE) && GetMenuItemInfoW(Menu, DefItem, FALSE, &mii) && 
      (mii.fState & (MFS_GRAYED | MFS_DISABLED)))
   {
     DefItem = SC_CLOSE;
   }
+  #endif
   SetMenuDefaultItem(Menu, DefItem, MF_BYCOMMAND);
 }
 
@@ -2121,7 +2125,7 @@
   if (IS_SYSTEM_MENU(MenuInfo))
     {
       MenuInitSysMenuPopup(ItemInfo.hSubMenu, GetWindowLongW(MenuInfo->Wnd, GWL_STYLE),
-                           GetClassLongW(MenuInfo->Wnd, GCL_STYLE), FALSE);
+                           GetClassLongW(MenuInfo->Wnd, GCL_STYLE), HTSYSMENU);
 
       NcGetSysPopupPos(MenuInfo->Wnd, &Rect);
       Rect.top = Rect.bottom;
CVSspam 0.2.8