mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
[User32]
- Fix check menu item and preserve the calling ID. See CORE-9884. svn path=/trunk/; revision=68568
This commit is contained in:
parent
e97072ac60
commit
937fab0c67
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue