mirror of https://github.com/odrling/Aegisub
Fix crash when writing crash logs
This commit is contained in:
parent
c83b2ace2a
commit
533bb4cd1c
|
@ -324,9 +324,9 @@ StackWalker::StackWalker(std::string const& cause)
|
||||||
void StackWalker::OnStackFrame(wxStackFrame const& frame) {
|
void StackWalker::OnStackFrame(wxStackFrame const& frame) {
|
||||||
if (!fp.good()) return;
|
if (!fp.good()) return;
|
||||||
|
|
||||||
fp << boost::format("%03u - %p: %s") % frame.GetLevel() % frame.GetAddress();
|
fp << boost::format("%03u - %p: %s") % frame.GetLevel() % frame.GetAddress() % frame.GetName().utf8_str().data();
|
||||||
if (frame.HasSourceLocation())
|
if (frame.HasSourceLocation())
|
||||||
fp << boost::format(" on %s:%u") % frame.GetFileName(), frame.GetLine();
|
fp << boost::format(" on %s:%u") % frame.GetFileName().utf8_str().data(), frame.GetLine();
|
||||||
|
|
||||||
fp << "\n";
|
fp << "\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue