- Fix check menu item and preserve the calling ID. See CORE-9884.

svn path=/trunk/; revision=68568
This commit is contained in:
James Tabor 2015-07-24 10:16:53 +00:00
parent e97072ac60
commit 937fab0c67

View file

@ -4600,11 +4600,12 @@ CheckMenuItem(HMENU hmenu,
{
PITEM item;
DWORD Ret;
UINT uID = uIDCheckItem;
if (!ValidateHandle(hmenu, TYPE_MENU))
return -1;
if (!(item = MENU_FindItem( &hmenu, &uIDCheckItem, uCheck ))) return -1;
if (!(item = MENU_FindItem( &hmenu, &uID, uCheck ))) return -1;
Ret = item->fState & MFS_CHECKED;
if ( Ret == (uCheck & MFS_CHECKED)) return Ret; // Already Checked...