fixed a bug in IntSetMenuItemInfo
Modified: trunk/reactos/subsys/win32k/ntuser/menu.c

Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
--- trunk/reactos/subsys/win32k/ntuser/menu.c	2006-01-16 23:26:26 UTC (rev 20926)
+++ trunk/reactos/subsys/win32k/ntuser/menu.c	2006-01-16 23:26:41 UTC (rev 20927)
@@ -750,7 +750,8 @@
       return FALSE;
    }
 
-   MenuItem->fType = lpmii->fType;
+   MenuItem->fType &= ~MENU_ITEM_TYPE(MenuItem->fType);
+   MenuItem->fType |= MENU_ITEM_TYPE(lpmii->fType);
 
    if(lpmii->fMask & MIIM_BITMAP)
    {
@@ -777,7 +778,8 @@
          FreeMenuText(MenuItem);
          RtlInitUnicodeString(&MenuItem->Text, NULL);
       }
-      MenuItem->fType = lpmii->fType;
+      MenuItem->fType &= ~MENU_ITEM_TYPE(MenuItem->fType);
+      MenuItem->fType |= MENU_ITEM_TYPE(lpmii->fType);
    }
    if(lpmii->fMask & MIIM_ID)
    {