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();