- Avoid an unintended fall-through and document and intended one in DownloadProgressProc. CID 1341273 (rapps), 1363531 (rapps_new)

svn path=/trunk/; revision=72848
This commit is contained in:
Thomas Faber
2016-09-29 09:36:33 +00:00
parent e5645b55eb
commit 1ff9c7f40d
2 changed files with 4 additions and 2 deletions
+2 -1
View 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);
}
@@ -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);
}