Commit c7a07f73 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Use MIIM_CHECKMARKS flag in InsertMenuW.

parent 926f5bb4
......@@ -3892,12 +3892,11 @@ BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags,
return FALSE;
MENU_mnu2mnuii( flags, id, str, &mii);
mii.fMask |= MIIM_CHECKMARKS;
item = &menu->items[newpos];
ret = SetMenuItemInfo_common( item, &mii, TRUE);
if (ret)
item->hCheckBit = item->hUnCheckBit = 0;
else
if (!ret)
RemoveMenu( hMenu, pos, flags );
release_menu_ptr(menu);
......
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