RomList: Fix 7zip filenames

This commit is contained in:
Vincent Cunningham 2021-03-03 19:20:48 -05:00
parent 43a2081cae
commit 563ee060dd
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ void CRomList::FillRomList(strlist & FileList, const char * Directory)
}
WriteTrace(TraceUserInterface, TraceDebug, "7");
memset(&RomInfo, 0, sizeof(ROM_INFO));
stdstr_f zipFileName("%s?%s", (LPCSTR)SearchPath, FileName.c_str());
stdstr_f zipFileName("%s?%s", (LPCSTR)SearchDir, FileName.c_str());
ZipFile.SetNotificationCallback((C7zip::LP7ZNOTIFICATION)NotificationCB, this);
strncpy(RomInfo.szFullFileName, zipFileName.c_str(), sizeof(RomInfo.szFullFileName) - 1);