mirror of https://github.com/mpv-player/mpv
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:
parent
01de2a9bd5
commit
c4600394d4
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue