@@ -7709,9 +7709,6 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
77097709
77107710 s_bHasUpdates=(!bRemote || GetSettingBool (L" RemoteShutdown" )) && GetSettingBool (L" CheckWinUpdates" ) && CheckForUpdates ();
77117711
7712-
7713- s_bHasUpdates = (!bRemote || GetSettingBool (L" RemoteShutdown" )) && GetSettingBool (L" CheckWinUpdates" ) && CheckForUpdates ();
7714-
77157712 // Check control panel options for power buttons
77167713 bool bHibernate = true , bSleep = true , bLock = true ;
77177714 {
@@ -7739,7 +7736,7 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
77397736 GetPwrCapabilities (&powerCaps);
77407737
77417738 // no sleep capabilities, turn off the sleep option
7742- if (!powerCaps.SystemS1 && ! powerCaps.SystemS2 && ! powerCaps.SystemS3 && ! powerCaps.AoAc )
7739+ if (!( powerCaps.SystemS1 || powerCaps.SystemS2 || powerCaps.SystemS3 || powerCaps.AoAc ) )
77437740 {
77447741 bSleep = false ;
77457742 }
@@ -7765,7 +7762,6 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
77657762 }
77667763 }
77677764
7768-
77697765 for (int i=0 ;i<_countof (g_StdOptions);i++)
77707766 {
77717767 switch (g_StdOptions[i].id )
@@ -7974,7 +7970,7 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
79747970 }
79757971 break ;
79767972 case MENU_LOCK:
7977- g_StdOptions[i].options = bLock ? MENU_ENABLED | MENU_EXPANDED:0 ;
7973+ g_StdOptions[i].options =( bLock)? MENU_ENABLED| MENU_EXPANDED:0 ;
79787974 break ;
79797975 case MENU_SLEEP:
79807976 g_StdOptions[i].options =(!s_bNoClose && bSleep)?MENU_ENABLED|MENU_EXPANDED:0 ;
0 commit comments