Skip to content

Display and control your Android device

Fix Windows Ctrl Handler declaration

Romain Vimonta85848a5415b
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index 2a4702e6..e56ad84d 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -50,7 +50,7 @@ static struct input_manager input_manager = {
};
#ifdef _WIN32
-BOOL windows_ctrl_handler(DWORD ctrl_type) {
+BOOL WINAPI windows_ctrl_handler(DWORD ctrl_type) {
if (ctrl_type == CTRL_C_EVENT) {
SDL_Event event;
event.type = SDL_QUIT;