DVDInterface: Fix newFileName variable not being printed correctly

This commit is contained in:
JosJuice 2015-06-06 21:29:43 +02:00
parent 95d682dfd5
commit 23f9ccf59b
1 changed files with 2 additions and 2 deletions

View File

@ -532,8 +532,8 @@ void ChangeDisc(const std::string& newFileName)
auto sizeofpath = fileName.find_last_of("/\\") + 1;
if (fileName.substr(sizeofpath).length() > 40)
{
PanicAlertT("The disc change to \"newFileName\" could not be saved in the .dtm.\n"
"The filename of the disc image must not be longer than 40 characters.");
PanicAlertT("The disc change to \"%s\" could not be saved in the .dtm file.\n"
"The filename of the disc image must not be longer than 40 characters.", newFileName.c_str());
}
Movie::g_discChange = fileName.substr(sizeofpath);
}