Fix bad format string that made stack trace writing fail after one stack frame

Originally committed to SVN as r6184.
This commit is contained in:
Thomas Goyne 2011-12-29 05:36:49 +00:00
parent 68b2ae8275
commit d192f1c332
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ void StackWalker::OnStackFrame(const wxStackFrame &frame) {
crash_xml->Write(wxString::Format(" <frame id='%i' loc='%X'>\n", frame.GetLevel(), frame.GetAddress()));
crash_xml->Write(wxString::Format(" <name>%s</name>\n", frame.GetName()));
if (frame.HasSourceLocation())
crash_xml->Write(wxString::Format(" <file line='%d'>%s</file>%s</name>\n", frame.GetLine(), frame.GetFileName()));
crash_xml->Write(wxString::Format(" <file line='%d'>%s</file>\n", frame.GetLine(), frame.GetFileName()));
crash_xml->Write(wxString::Format(" <module><![CDATA[%s]]></module>\n", frame.GetModule()));
crash_xml->Write( " </frame>\n");
}