From a803a13e808d47c9f63d9f2b61f5ad1bef59ea1f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 27 Apr 2016 15:53:53 +1000 Subject: [PATCH] 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. --- backtrace_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtrace_win32.cpp b/backtrace_win32.cpp index 2158916f..ae5470a0 100644 --- a/backtrace_win32.cpp +++ b/backtrace_win32.cpp @@ -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);