(loc_Exit_Handler, empth_init) [_WIN32]: Correct the function declaration
for loc_Exit_Handler(). Remove unnecessary cast.
This commit is contained in:
parent
1fb8b9af73
commit
90a53439b2
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue