From 071e4d5c8352d83474a3881d0c2466d0ee90020c Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 23 Nov 2005 13:13:09 +0000 Subject: [PATCH] fixed bug 888 (menus created by application itself may not appear) svn path=/trunk/; revision=19484 --- reactos/subsys/win32k/ntuser/menu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/menu.c b/reactos/subsys/win32k/ntuser/menu.c index cb62c2857c1..db02346bd7c 100644 --- a/reactos/subsys/win32k/ntuser/menu.c +++ b/reactos/subsys/win32k/ntuser/menu.c @@ -907,7 +907,9 @@ IntInsertMenuItem(PMENU_OBJECT MenuObject, UINT uItem, BOOL fByPosition, pos = IntInsertMenuItemToList(MenuObject, MenuItem, pos); - return pos >= 0; + DPRINT("IntInsertMenuItemToList = %i\n", pos); + + return (pos >= 0); } UINT FASTCALL @@ -1561,11 +1563,13 @@ NtUserInsertMenuItem( SetLastNtError(Status); RETURN( FALSE); } + /* structure can be 44 bytes or 48 bytes in size if (ItemInfo.cbSize != sizeof(MENUITEMINFOW)) { SetLastWin32Error(ERROR_INVALID_PARAMETER); RETURN( FALSE); } + */ RETURN( IntInsertMenuItem(Menu, uItem, fByPosition, &ItemInfo));