mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[win32k]
- Fix braindead logic that caused GetMenuItemRect to fail in every case svn path=/trunk/; revision=51696
This commit is contained in:
@@ -2050,7 +2050,6 @@ NtUserGetMenuItemRect(
|
||||
UINT uItem,
|
||||
PRECTL lprcItem)
|
||||
{
|
||||
ROSMENUINFO mi;
|
||||
PWND ReferenceWnd;
|
||||
LONG XMove, YMove;
|
||||
RECTL Rect;
|
||||
@@ -2074,15 +2073,12 @@ NtUserGetMenuItemRect(
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user