[RAPPS]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 29 Sep 2016 09:36:33 +0000 (09:36 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 29 Sep 2016 09:36:33 +0000 (09:36 +0000)
- Avoid an unintended fall-through and document and intended one in DownloadProgressProc. CID 1341273 (rapps), 1363531 (rapps_new)

svn path=/trunk/; revision=72848

reactos/base/applications/rapps/loaddlg.c
reactos/base/applications/rapps_new/loaddlg.cpp

index 7ed8159..8bb8917 100644 (file)
@@ -556,6 +556,7 @@ DownloadProgressProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PT
                               sizeof(szProgressText),
                               (PCWSTR)lParam);
             }
+            return TRUE;
         }
 
         case WM_ERASEBKGND:
@@ -611,7 +612,7 @@ DownloadProgressProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PT
             ZeroMemory(szProgressText, sizeof(szProgressText));
             RemoveWindowSubclass(hWnd, DownloadProgressProc, uIdSubclass);
         }
-
+        /* Fall-through */
         default:
             return DefSubclassProc(hWnd, uMsg, wParam, lParam);
     }
index 10d9601..46a2dca 100644 (file)
@@ -508,6 +508,7 @@ DownloadProgressProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PT
                               sizeof(szProgressText),
                               (PCWSTR)lParam);
             }
+            return TRUE;
         }
 
         case WM_ERASEBKGND:
@@ -563,7 +564,7 @@ DownloadProgressProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PT
             ZeroMemory(szProgressText, sizeof(szProgressText));
             RemoveWindowSubclass(hWnd, DownloadProgressProc, uIdSubclass);
         }
-
+        /* Fall-through */
         default:
             return DefSubclassProc(hWnd, uMsg, wParam, lParam);
     }