for loc_Exit_Handler(). Remove unnecessary cast.
* 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) {
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));