mirror of https://github.com/PCSX2/pcsx2.git
GUI: Fix crash on asserts from outside of PCSX2
This commit is contained in:
parent
f4010029f1
commit
66a1c26b77
|
@ -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() );
|
||||||
|
|
Loading…
Reference in New Issue