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.
This commit is contained in:
dongresource 2023-10-12 01:49:17 +02:00
parent 96c430c994
commit edfbe4d005

View File

@ -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;
}