From edfbe4d005bd1eb98b0d33c521ac15dd4fc09202 Mon Sep 17 00:00:00 2001 From: dongresource Date: Thu, 12 Oct 2023 01:49:17 +0200 Subject: [PATCH] Make winTerminate() a WINAPI function This macro makes it use the stdcall calling convention when compiling for 32-bit Windows. Its absence was technically a bug, but it's a no-op on 64-bit Windows. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 750d9f8..288e537 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -64,7 +64,7 @@ void terminate(int arg) { } #ifdef _WIN32 -static BOOL winTerminate(DWORD arg) { +static BOOL WINAPI winTerminate(DWORD arg) { terminate(0); return FALSE; }