From 7ece901d579f633a0872c03f4b94bd4ddb0a80ed Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 22 Feb 2020 00:18:58 +0900 Subject: [PATCH] CDImage/CHD: Fix crash when opening invalid/nonexistant file --- src/common/cd_image_chd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cd_image_chd.cpp b/src/common/cd_image_chd.cpp index 3b4cb89eb..3b33c8f8a 100644 --- a/src/common/cd_image_chd.cpp +++ b/src/common/cd_image_chd.cpp @@ -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; }