From: Ron Koenderink Date: Tue, 27 Nov 2007 03:29:35 +0000 (+0000) Subject: (loc_Exit_Handler, empth_init) [_WIN32]: Correct the function declaration X-Git-Tag: v4.3.11~79 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=90a53439b22d009b7773435db0e0c80a692d2675 (loc_Exit_Handler, empth_init) [_WIN32]: Correct the function declaration for loc_Exit_Handler(). Remove unnecessary cast. --- 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));