Commit ac8e7528 authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

Fail SetMenuItemInfo if both MFT_BITMAP and MFT_SEPARATOR are

specified (an api violation).
parent 8780853a
......@@ -4278,8 +4278,13 @@ BOOL WINAPI SetMenuItemInfoA(HMENU hmenu, UINT item, BOOL bypos,
/* QuickTime does pass invalid data into SetMenuItemInfo.
* do some of the checks Windows does.
*/
WARN("Bad masks for type (0x%08x) or state (0x%08x)\n",
lpmii->fType,lpmii->fState );
WARN("Bad masks (0x%08x) for type (0x%08x) or state (0x%08x)\n",
lpmii->fMask, lpmii->fType,lpmii->fState );
}
/* is the app setting both MFT_BITMAP and MFT_SEPARATOR (which is wrong)? */
if (lpmii->fType & (MFT_BITMAP | MFT_SEPARATOR)) {
WARN("fType contains MFT_BITMAP and MFT_SEPARATOR, API violation\n");
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment