fix crash in cheat search involving loading state in the middle of a search session

This commit is contained in:
zeromus 2009-06-03 15:32:51 +00:00
parent cd5560b966
commit 3499207db6
2 changed files with 4 additions and 3 deletions

View File

@ -792,6 +792,10 @@ void cheatsSearchInit(u8 type, u8 size, u8 sign)
void cheatsSearchClose()
{
#ifdef _MSC_VER
void CheatsSearchReset();
CheatsSearchReset();
#endif
if (searchStatMem) delete [] searchStatMem;
searchStatMem = NULL;

View File

@ -3727,7 +3727,6 @@ LRESULT CALLBACK EmulationSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
if(romloaded)
{
CheatsSearchReset();
NDS_Reset();
}
}
@ -3960,7 +3959,6 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
if(romloaded)
{
CheatsSearchReset();
NDS_Reset();
}
}
@ -4100,7 +4098,6 @@ LRESULT CALLBACK SoundSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARA
void ResetGame()
{
CheatsSearchReset();
NDS_Reset();
}