Pārlūkot izejas kodu

Add missing breaks to Windows key grab code

These were not meant to fall through. Likely didn't have any adverse
effects, but let's fix it anyway.
pull/1574/head
Pierre Ossman pirms 1 gada
vecāks
revīzija
eb684b9979
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      vncviewer/win32.c

+ 2
- 0
vncviewer/win32.c Parādīt failu

@@ -59,11 +59,13 @@ static int is_system_hotkey(int vkCode) {
case VK_TAB:
if (GetAsyncKeyState(VK_MENU) & 0x8000)
return 1;
break;
case VK_ESCAPE:
if (GetAsyncKeyState(VK_MENU) & 0x8000)
return 1;
if (GetAsyncKeyState(VK_CONTROL) & 0x8000)
return 1;
break;
}
return 0;
}

Notiek ielāde…
Atcelt
Saglabāt