mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 14:28:40 +00:00
build fix for msvc 2017
This commit is contained in:
@@ -110,7 +110,7 @@ win32_dialog_callback(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, LONG_PT
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal LONG WINAPI
|
internal LONG WINAPI
|
||||||
win32_exception_filter(EXCEPTION_POINTERS* exception_info)
|
win32_exception_filter(EXCEPTION_POINTERS* exception_ptrs)
|
||||||
{
|
{
|
||||||
if(g_is_quiet)
|
if(g_is_quiet)
|
||||||
{
|
{
|
||||||
@@ -129,7 +129,7 @@ win32_exception_filter(EXCEPTION_POINTERS* exception_info)
|
|||||||
WCHAR buffer[4096] = {0};
|
WCHAR buffer[4096] = {0};
|
||||||
int buflen = 0;
|
int buflen = 0;
|
||||||
|
|
||||||
DWORD exception_code = exception_info->ExceptionRecord->ExceptionCode;
|
DWORD exception_code = exception_ptrs->ExceptionRecord->ExceptionCode;
|
||||||
buflen += wnsprintfW(buffer + buflen, sizeof(buffer) - buflen, L"A fatal exception (code 0x%x) occurred. The process is terminating.\n", exception_code);
|
buflen += wnsprintfW(buffer + buflen, sizeof(buffer) - buflen, L"A fatal exception (code 0x%x) occurred. The process is terminating.\n", exception_code);
|
||||||
|
|
||||||
// load dbghelp dynamically just in case if it is missing
|
// load dbghelp dynamically just in case if it is missing
|
||||||
@@ -161,7 +161,7 @@ win32_exception_filter(EXCEPTION_POINTERS* exception_info)
|
|||||||
{
|
{
|
||||||
HANDLE process = GetCurrentProcess();
|
HANDLE process = GetCurrentProcess();
|
||||||
HANDLE thread = GetCurrentThread();
|
HANDLE thread = GetCurrentThread();
|
||||||
CONTEXT* context = exception_info->ContextRecord;
|
CONTEXT* context = exception_ptrs->ContextRecord;
|
||||||
|
|
||||||
dbg_SymSetOptions(SYMOPT_EXACT_SYMBOLS | SYMOPT_FAIL_CRITICAL_ERRORS | SYMOPT_LOAD_LINES | SYMOPT_UNDNAME);
|
dbg_SymSetOptions(SYMOPT_EXACT_SYMBOLS | SYMOPT_FAIL_CRITICAL_ERRORS | SYMOPT_LOAD_LINES | SYMOPT_UNDNAME);
|
||||||
if(dbg_SymInitializeW(process, L"", TRUE))
|
if(dbg_SymInitializeW(process, L"", TRUE))
|
||||||
|
|||||||
Reference in New Issue
Block a user