Skip to content

Commit

Permalink
windows: fix the calling convention
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelash committed Feb 16, 2024
1 parent 366697c commit df96de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gral_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df96de8

Please sign in to comment.