mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
CDImage/CHD: Fix crash when opening invalid/nonexistant file
This commit is contained in:
parent
1ed8243776
commit
7ece901d57
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue