From 90a53439b22d009b7773435db0e0c80a692d2675 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Tue, 27 Nov 2007 03:29:35 +0000 Subject: [PATCH] (loc_Exit_Handler, empth_init) [_WIN32]: Correct the function declaration for loc_Exit_Handler(). Remove unnecessary cast. --- src/lib/empthread/ntthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index e7e70436c..fffb47777 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -298,7 +298,7 @@ loc_BlockThisThread(void) * System-Shutdown will initiate a shutdown. * This is done by calling empth_request_shutdown() */ -static BOOL +static BOOL WINAPI loc_Exit_Handler(DWORD fdwCtrlType) { switch (fdwCtrlType) { @@ -392,7 +392,7 @@ empth_init(void **ctx_ptr, int flags) logerror("Failed to create shutdown event %lu", GetLastError()); return 0; } - SetConsoleCtrlHandler((PHANDLER_ROUTINE)loc_Exit_Handler, TRUE); + SetConsoleCtrlHandler(loc_Exit_Handler, TRUE); /* Create the global Thread context. */ pThread = malloc(sizeof(*pThread)); -- 2.43.0