mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
yes
This commit is contained in:
16
Tests/main.c
16
Tests/main.c
@@ -41,14 +41,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
|
|
||||||
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
|
void PulseFollowStackTrace()
|
||||||
{
|
|
||||||
fprintf(stderr, "Exception occurred!\n");
|
|
||||||
FollowStackTrace();
|
|
||||||
return EXCEPTION_EXECUTE_HANDLER;
|
|
||||||
}
|
|
||||||
|
|
||||||
void FollowStackTrace()
|
|
||||||
{
|
{
|
||||||
HANDLE process = GetCurrentProcess();
|
HANDLE process = GetCurrentProcess();
|
||||||
SymInitialize(process, NULL, TRUE);
|
SymInitialize(process, NULL, TRUE);
|
||||||
@@ -83,6 +76,13 @@
|
|||||||
}
|
}
|
||||||
free(symbol);
|
free(symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Exception occurred!\n");
|
||||||
|
PulseFollowStackTrace();
|
||||||
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void TestBackend();
|
extern void TestBackend();
|
||||||
|
|||||||
Reference in New Issue
Block a user