Skip to content

Commit

Permalink
GUI: Fix crash on asserts from outside of PCSX2
Browse files Browse the repository at this point in the history
  • Loading branch information
TellowKrinkle committed Sep 22, 2021
1 parent f401002 commit 66a1c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/gui/AppAssert.cpp
Expand Up @@ -79,7 +79,7 @@ class StackDump : public wxStackWalker
wxFileName wxfn(frame.GetFileName());

wxfn.SetVolume( wxEmptyString );
for( int i=0; i<2; ++i )
for (int i = 0; i < 2 && wxfn.GetDirCount() > 0; ++i)
wxfn.RemoveDir(0);

m_stackTrace.Write( L" %s:%d", WX_STR(wxfn.GetFullPath()), frame.GetLine() );
Expand Down

0 comments on commit 66a1c26

Please sign in to comment.