Author: gadamopoulos
Date: Fri May 13 14:47:36 2011
New Revision: 51696

URL: http://svn.reactos.org/svn/reactos?rev=51696&view=rev
Log:
[win32k]
- Fix braindead logic that caused GetMenuItemRect to fail in every case

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/menu.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/menu.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/menu.c?rev=51696&r1=51695&r2=51696&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/menu.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/menu.c [iso-8859-1] Fri May 13 
14:47:36 2011
@@ -2050,7 +2050,6 @@
    UINT uItem,
    PRECTL lprcItem)
 {
-   ROSMENUINFO mi;
    PWND ReferenceWnd;
    LONG XMove, YMove;
    RECTL Rect;
@@ -2074,15 +2073,12 @@
 
    if(!hWnd)
    {
-      if(!UserMenuInfo(Menu, &mi, FALSE))
-         RETURN( FALSE);
-      if(mi.Wnd == 0)
-         RETURN( FALSE);
+       hWnd = Menu->MenuInfo.Wnd;
    }
 
    if (lprcItem == NULL) RETURN( FALSE);
 
-   if (!(ReferenceWnd = UserGetWindowObject(mi.Wnd))) RETURN( FALSE);
+   if (!(ReferenceWnd = UserGetWindowObject(hWnd))) RETURN( FALSE);
 
    if(MenuItem->fType & MF_POPUP)
    {


Reply via email to