[Win32SS]
authorJames Tabor <james.tabor@reactos.org>
Fri, 20 Nov 2015 10:49:12 +0000 (10:49 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 20 Nov 2015 10:49:12 +0000 (10:49 +0000)
- Patch by Alexandre Julliard : Add workaround for removed SC_TASKLIST system menu item. Word 95 assumes that the item exists.
- Wine sync port.

svn path=/trunk/; revision=69959

reactos/win32ss/user/ntuser/menu.c

index 046dd07..66f9cd8 100644 (file)
@@ -4882,6 +4882,10 @@ UserMenuItemInfo(
 
    if (!(MenuItem = MENU_FindItem( &Menu, &Item, (ByPosition ? MF_BYPOSITION : MF_BYCOMMAND) )))
    {
+      /* workaround for Word 95: pretend that SC_TASKLIST item exists. */
+      if ( SetOrGet && Item == SC_TASKLIST && !ByPosition )
+         return TRUE;
+
       EngSetLastError(ERROR_MENU_ITEM_NOT_FOUND);
       return( FALSE);
    }