Fix Windows compilation and improve examples

This commit is contained in:
Antony Polukhin
2016-11-17 22:39:06 +03:00
parent 051a2d3557
commit b9cbcb48be
3 changed files with 5 additions and 4 deletions

View File

@@ -122,7 +122,8 @@ struct backtrace_holder {
inline std::size_t get_source_line(std::size_t frame) const BOOST_NOEXCEPT {
ULONG line_num = 0;
if (!try_init_com()) {
com_holder<IDebugSymbols> idebug_;
if (!try_init_com(idebug_)) {
return 0;
}