Fix Windows debug builds

This commit is contained in:
Robin Gareus 2021-07-14 15:07:11 +02:00
parent 15fd9f23f3
commit 46251c2068
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -74,7 +74,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start)
}
}
#elif defined (PLATFORM_WINDOWS)
#elif defined PLATFORM_WINDOWS
#if !defined CaptureStackBackTrace
#define CaptureStackBackTrace RtlCaptureStackBackTrace
@ -98,7 +98,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start)
HANDLE process;
process = GetCurrentProcess();
out << "Backtrace thread: " << DEBUG_THREAD_SELF << std::endl;
out << string_compose ("Backtrace thread: %1", DEBUG_THREAD_SELF) << std::endl;
SymInitialize (process, NULL, TRUE);