FIXED: Buffer overrun when selecting "Flash save" in the "Import->Battery file..." dialog.

This commit is contained in:
spacy51 2008-01-11 17:50:19 +00:00
parent a1fa8613cf
commit 1462778474
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ BOOL MainWnd::OnFileSaveSlot(UINT nID)
void MainWnd::OnFileImportBatteryfile() void MainWnd::OnFileImportBatteryfile()
{ {
theApp.winCheckFullscreen(); theApp.winCheckFullscreen();
LPCTSTR exts[] = { ".sav" }; LPCTSTR exts[] = { ".sav", ".dat" };
CString filter = winLoadFilter(IDS_FILTER_SAV); CString filter = winLoadFilter(IDS_FILTER_SAV);
CString title = winResLoadString(IDS_SELECT_BATTERY_FILE); CString title = winResLoadString(IDS_SELECT_BATTERY_FILE);