mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Mintest revisions
This commit is contained in:
parent
908dbe1a6e
commit
ce66b658c4
7 changed files with 117 additions and 65 deletions
|
@ -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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue