CDImage/CHD: Fix crash when opening invalid/nonexistant file

This commit is contained in:
Connor McLaughlin 2020-02-22 00:18:58 +09:00
parent 1ed8243776
commit 7ece901d57

View file

@ -82,7 +82,7 @@ bool CDImageCHD::Open(const char* filename)
chd_error err = chd_open(filename, CHD_OPEN_READ, nullptr, &m_chd);
if (err != CHDERR_NONE)
{
Log_ErrorPrintf("Failed to open CHD '%s': %s", chd_error_string(err));
Log_ErrorPrintf("Failed to open CHD '%s': %s", filename, chd_error_string(err));
return false;
}