mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Convert NULL menu items to separators.
This commit is contained in:
parent
417296c4af
commit
5076dbaabc
@ -1972,10 +1972,16 @@ static LPCSTR MENUEX_ParseResource( LPCSTR res, HMENU hMenu)
|
||||
if (!(res = MENUEX_ParseResource(res, mii.hSubMenu))) {
|
||||
DestroyMenu(mii.hSubMenu);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
mii.fMask |= MIIM_SUBMENU;
|
||||
mii.fType |= MF_POPUP;
|
||||
}
|
||||
else if(!*mii.dwTypeData && !(mii.fType & MF_SEPARATOR))
|
||||
{
|
||||
WARN("Converting NULL menu item %04x, type %04x to SEPARATOR\n",
|
||||
mii.wID, mii.fType);
|
||||
mii.fType |= MF_SEPARATOR;
|
||||
}
|
||||
InsertMenuItemW(hMenu, -1, MF_BYPOSITION, &mii);
|
||||
} while (!(resinfo & MF_END));
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user