[EXPLORER] Add missing 'break' statements. Spotted by mudhead. CORE-14518
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 2 Apr 2018 14:12:25 +0000 (16:12 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 2 Apr 2018 14:12:25 +0000 (16:12 +0200)
base/shell/explorer/syspager.cpp

index fa2aa73..5340ba4 100644 (file)
@@ -1283,9 +1283,11 @@ BOOL CSysPagerWnd::NotifyIcon(DWORD dwMessage, _In_ CONST NOTIFYICONDATA *iconDa
             (void)AddIconToWatcher(iconData);
         }
         break;
             (void)AddIconToWatcher(iconData);
         }
         break;
+
     case NIM_MODIFY:
         ret = Toolbar.UpdateButton(iconData);
         break;
     case NIM_MODIFY:
         ret = Toolbar.UpdateButton(iconData);
         break;
+
     case NIM_DELETE:
         ret = Toolbar.RemoveButton(iconData);
         if (ret == TRUE)
     case NIM_DELETE:
         ret = Toolbar.RemoveButton(iconData);
         if (ret == TRUE)
@@ -1293,11 +1295,16 @@ BOOL CSysPagerWnd::NotifyIcon(DWORD dwMessage, _In_ CONST NOTIFYICONDATA *iconDa
             (void)RemoveIconFromWatcher(iconData);
         }
         break;
             (void)RemoveIconFromWatcher(iconData);
         }
         break;
+
     case NIM_SETFOCUS:
         Toolbar.SetFocus();
         ret = TRUE;
     case NIM_SETFOCUS:
         Toolbar.SetFocus();
         ret = TRUE;
+        break;
+
     case NIM_SETVERSION:
         ret = Toolbar.SwitchVersion(iconData);
     case NIM_SETVERSION:
         ret = Toolbar.SwitchVersion(iconData);
+        break;
+
     default:
         TRACE("NotifyIcon received with unknown code %d.\n", dwMessage);
         return FALSE;
     default:
         TRACE("NotifyIcon received with unknown code %d.\n", dwMessage);
         return FALSE;