Add missing case from previous commit
@@ -984,6 +984,16 @@ LRESULT CALLBACK MainWndSubclassProc(
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, PHAPP_ID_COMPUTER_SHUTDOWN, L"Shu&t down", NULL, NULL), -1);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, PHAPP_ID_COMPUTER_SHUTDOWNHYBRID, L"H&ybrid shut down", NULL, NULL), -1);
+ if (WindowsVersion < WINDOWS_8)
+ {
+ PPH_EMENU_ITEM menuItemRemove;
+
+ if (menuItemRemove = PhFindEMenuItem(menu, PH_EMENU_FIND_DESCEND, NULL, PHAPP_ID_COMPUTER_RESTARTBOOTOPTIONS))
+ PhDestroyEMenuItem(menuItemRemove);
+ if (menuItemRemove = PhFindEMenuItem(menu, PH_EMENU_FIND_DESCEND, NULL, PHAPP_ID_COMPUTER_SHUTDOWNHYBRID))
+ PhDestroyEMenuItem(menuItemRemove);
+ }
+
MapWindowPoints(ToolBarHandle, NULL, (LPPOINT)&toolbar->rcButton, 2);
selectedItem = PhShowEMenu(
