w32_common: remove implicit fallthrough

GCC 9.2 warns about this. It was always a bit sketchy, so get rid of it.
VK_F10 generates WM_SYSKEYDOWN, so it only needs to be handled in the
WM_SYSKEYDOWN case.
This commit is contained in:
James Ross-Gowan 2019-12-29 02:30:31 +11:00
parent 01de2a9bd5
commit c4600394d4
1 changed files with 3 additions and 2 deletions

View File

@ -1081,12 +1081,13 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
return 0;
}
// Handle all other WM_SYSKEYDOWN messages as WM_KEYDOWN
case WM_KEYDOWN:
handle_key_down(w32, wParam, HIWORD(lParam));
if (wParam == VK_F10)
return 0;
break;
case WM_KEYDOWN:
handle_key_down(w32, wParam, HIWORD(lParam));
break;
case WM_SYSKEYUP:
case WM_KEYUP:
handle_key_up(w32, wParam, HIWORD(lParam));