diff --git a/Source/fault.cpp b/Source/fault.cpp index b62f69f71..ba18c6b1e 100644 --- a/Source/fault.cpp +++ b/Source/fault.cpp @@ -242,9 +242,10 @@ char *__fastcall fault_get_error_type(DWORD dwMessageId, LPSTR lpString1, DWORD return lpString1; } -void __fastcall fault_set_filter(void *unused) +void * __fastcall fault_set_filter(void *unused) { lpTopLevelExceptionFilter = SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)TopLevelExceptionFilter); + return unused; } LPTOP_LEVEL_EXCEPTION_FILTER __fastcall fault_reset_filter(void *unused) diff --git a/Source/fault.h b/Source/fault.h index cad8bb3bc..324f1e4e6 100644 --- a/Source/fault.h +++ b/Source/fault.h @@ -18,7 +18,7 @@ void __fastcall fault_hex_format(BYTE *ptr, unsigned int numBytes); void __fastcall fault_unknown_module(LPCVOID lpAddress, LPSTR lpModuleName, int iMaxLength, int *sectionNum, int *sectionOffset); void __fastcall fault_call_stack(void *instr, STACK_FRAME *stackAddr); char *__fastcall fault_get_error_type(DWORD dwMessageId, LPSTR lpString1, DWORD nSize); -void __fastcall fault_set_filter(void *unused); +void * __fastcall fault_set_filter(void *unused); LPTOP_LEVEL_EXCEPTION_FILTER __fastcall fault_reset_filter(void *unused); LPTOP_LEVEL_EXCEPTION_FILTER __cdecl fault_get_filter();