From df96de82a1ef144ef6d035ae6a7729efbfbca982 Mon Sep 17 00:00:00 2001 From: Elias Aebi Date: Fri, 16 Feb 2024 15:07:18 +0100 Subject: [PATCH] windows: fix the calling convention --- gral_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gral_windows.cpp b/gral_windows.cpp index 2efa04d..ca7e11c 100644 --- a/gral_windows.cpp +++ b/gral_windows.cpp @@ -1182,7 +1182,7 @@ struct gral_directory_watcher { void (*callback)(void *user_data); void *user_data; char buffer[4096]; - static void completion_routine(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped) { + static void CALLBACK completion_routine(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped) { gral_directory_watcher *watcher = (gral_directory_watcher *)lpOverlapped->hEvent; if (dwErrorCode == ERROR_OPERATION_ABORTED) { delete watcher;