Author: jimtabor
Date: Fri Jul 24 10:16:53 2015
New Revision: 68568
URL:
http://svn.reactos.org/svn/reactos?rev=68568&view=rev
Log:
[User32]
- Fix check menu item and preserve the calling ID. See CORE-9884.
Modified:
trunk/reactos/win32ss/user/user32/windows/menu.c
Modified: trunk/reactos/win32ss/user/user32/windows/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/menu.c [iso-8859-1] Fri Jul 24 10:16:53
2015
@@ -4600,11 +4600,12 @@
{
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...