fixed bug 888 (menus created by application itself may not appear)
Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
--- trunk/reactos/subsys/win32k/ntuser/menu.c 2005-11-23 07:07:40 UTC
(rev 19483)
+++ trunk/reactos/subsys/win32k/ntuser/menu.c 2005-11-23 13:13:09 UTC
(rev 19484)
@@ -907,7 +907,9 @@
pos = IntInsertMenuItemToList(MenuObject, MenuItem, pos);
- return pos >= 0;
+ DPRINT("IntInsertMenuItemToList = %i\n", pos);
+
+ return (pos >= 0);
}
UINT FASTCALL
@@ -1561,11 +1563,13 @@
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));
Show replies by date