From 3cfc004c28d68956d44e9c9e2f339cea7ab4db76 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Mon, 14 Apr 2025 08:42:12 +0200 Subject: [PATCH] yes --- Tests/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/main.c b/Tests/main.c index 4249ad7..d2557a5 100644 --- a/Tests/main.c +++ b/Tests/main.c @@ -41,14 +41,7 @@ #include #include - LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo) - { - fprintf(stderr, "Exception occurred!\n"); - FollowStackTrace(); - return EXCEPTION_EXECUTE_HANDLER; - } - - void FollowStackTrace() + void PulseFollowStackTrace() { HANDLE process = GetCurrentProcess(); SymInitialize(process, NULL, TRUE); @@ -83,6 +76,13 @@ } free(symbol); } + + LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo) + { + fprintf(stderr, "Exception occurred!\n"); + PulseFollowStackTrace(); + return EXCEPTION_EXECUTE_HANDLER; + } #endif extern void TestBackend();