mirror of https://github.com/PCSX2/pcsx2.git
Fix uninitialised variable use in GS title bar
When the GS plugin is suspended and resumed, PCSX2 will set GS frame title using an uninitialised array, making it prone to crashing in those situations. Initialise the array.
This commit is contained in:
parent
3debd3ae12
commit
badfcb6e3f
|
@ -558,6 +558,7 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
|
|||
double fps = wxGetApp().FpsManager.GetFramerate();
|
||||
|
||||
char gsDest[128];
|
||||
gsDest[0] = 0; // No need to set whole array to NULL.
|
||||
GSgetTitleInfo2( gsDest, sizeof(gsDest) );
|
||||
|
||||
const wxChar* limiterStr = L"None";
|
||||
|
|
Loading…
Reference in New Issue