CHD: Fix parent search on windows

Apparently you can't use the constructor to concat a literal and a
wxString like that.
This commit is contained in:
Ziemas 2021-07-21 03:14:51 +01:00 committed by refractionpcsx2
parent a13222f926
commit 080ba94ed2
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ bool ChdFileReader::Open2(const wxString& fileName)
if (dir.IsOpened())
{
wxString parent_fileName;
bool cont = dir.GetFirst(&parent_fileName, wxString("*.", wxfilename.GetExt()), wxDIR_FILES | wxDIR_HIDDEN);
bool cont = dir.GetFirst(&parent_fileName, wxString("*.") + wxfilename.GetExt(), wxDIR_FILES | wxDIR_HIDDEN);
for (; cont; cont = dir.GetNext(&parent_fileName))
{
parent_fileName = wxFileName(dir_path, parent_fileName).GetFullPath();