backtrace: don't use assertions to test runtime failures

This commit is contained in:
Danny Robson 2018-08-20 15:07:35 +10:00
parent 3adbfae057
commit 55c5bf96c5

View File

@ -23,8 +23,8 @@ using debug::backtrace;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
backtrace::backtrace () backtrace::backtrace ()
{ {
static auto ready = SymInitialize (GetCurrentProcess (), nullptr, TRUE); if (!SymInitialize (GetCurrentProcess (), nullptr, TRUE))
CHECK (ready); cruft::win32::error::throw_code ();
CONTEXT ctx; CONTEXT ctx;
memset (&ctx, 0, sizeof (ctx)); memset (&ctx, 0, sizeof (ctx));