From 6ebfb414b6885bea7c80ef39af8ba444ec8b44da Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Thu, 4 Apr 2019 00:22:10 +0900 Subject: [PATCH] fault: fault_set_filter bin exact --- Source/fault.cpp | 3 ++- Source/fault.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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();