backtrace_win32: avoid using win32 wrappers

We have to be extraodinarily careful about what functions are called at
this low level so it's easier to just avoid any protective wrappers.
This commit is contained in:
Danny Robson 2016-04-27 15:53:53 +10:00
parent 1356391259
commit a803a13e80

View File

@ -50,7 +50,7 @@ debug::backtrace::backtrace (void)
///////////////////////////////////////////////////////////////////////////////
std::ostream&
debug::operator <<(std::ostream &os, const debug::backtrace &rhs) {
static auto self = util::win32::handle::current_process ();
static auto self = GetCurrentProcess ();
static auto ready = SymInitialize (self, nullptr, TRUE);
CHECK (ready);