debug: warn if win32 debug helper can't be loaded

This commit is contained in:
Danny Robson 2016-04-05 11:07:53 +10:00
parent 80158b7343
commit b79a2242a4

View File

@ -18,6 +18,7 @@
#include "./except.hpp"
#include "./log.hpp"
#include "./except.hpp"
#include <windows.h>
@ -46,7 +47,7 @@ void
prepare_debugger (void)
{
if (nullptr == LoadLibrary("exchndl.dll")) {
LOG_WARNING("Emergency debugger not loaded: %s", util::win32_error ());
LOG_WARNING("Emergency debugger not loaded: %s", util::win32_error::code_string ());
}
}