Fixed menu type setting in SetMenuItemInfo32_common().
This commit is contained in:
parent
2e658768dc
commit
39da222b19
|
@ -4062,7 +4062,10 @@ static BOOL SetMenuItemInfo_common(MENUITEM * menu,
|
|||
if (IS_STRING_ITEM(menu->fType) && menu->text)
|
||||
HeapFree(SystemHeap, 0, menu->text);
|
||||
|
||||
menu->fType = lpmii->fType;
|
||||
/* make only MENU_ITEM_TYPE bits in menu->fType equal lpmii->fType */
|
||||
menu->fType &= ~MENU_ITEM_TYPE(menu->fType);
|
||||
menu->fType |= MENU_ITEM_TYPE(lpmii->fType);
|
||||
|
||||
menu->text = lpmii->dwTypeData;
|
||||
if (IS_STRING_ITEM(menu->fType) && menu->text) {
|
||||
menu->text =
|
||||
|
|
Loading…
Reference in New Issue