GUI: Fix crash on asserts from outside of PCSX2

This commit is contained in:
TellowKrinkle 2021-09-20 17:30:54 -05:00 committed by tellowkrinkle
parent f4010029f1
commit 66a1c26b77
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ protected:
wxFileName wxfn(frame.GetFileName()); wxFileName wxfn(frame.GetFileName());
wxfn.SetVolume( wxEmptyString ); wxfn.SetVolume( wxEmptyString );
for( int i=0; i<2; ++i ) for (int i = 0; i < 2 && wxfn.GetDirCount() > 0; ++i)
wxfn.RemoveDir(0); wxfn.RemoveDir(0);
m_stackTrace.Write( L" %s:%d", WX_STR(wxfn.GetFullPath()), frame.GetLine() ); m_stackTrace.Write( L" %s:%d", WX_STR(wxfn.GetFullPath()), frame.GetLine() );