1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Mintest revisions

This commit is contained in:
Brian Fiete 2019-09-29 07:44:39 -07:00
parent 908dbe1a6e
commit ce66b658c4
7 changed files with 117 additions and 65 deletions

View file

@ -118,4 +118,25 @@ __declspec(dllexport) void Test3(int a, int b)
//printf("Hey!\n");
}
static long __stdcall SEHFilter(LPEXCEPTION_POINTERS lpExceptPtr)
{
printf("SEHFilter!\n");
return 0;
}
extern "C"
__declspec(dllexport) void TestSEH()
{
if (::MessageBoxA(NULL, "DO IT?", "Crash?", MB_YESNO) == IDNO)
return;
::SetUnhandledExceptionFilter(SEHFilter);
int* iPtr = nullptr;
*iPtr = 1;
//printf("Hey!\n");
}