Fixed regression tests

This commit is contained in:
Ladislav Zezula
2023-01-16 21:22:25 +01:00
parent 6f89c7ba85
commit cdceb0c527
3 changed files with 8 additions and 11 deletions

View File

@@ -1333,14 +1333,14 @@ static bool CheckIfFileIsPresent(TLogHelper * pLogger, HANDLE hMpq, LPCSTR szFil
if(SFileOpenFileEx(hMpq, szFileName, 0, &hFile))
{
if(bShouldExist == false)
pLogger->PrintMessage("The file %s is present, but it should not be", szFileName);
pLogger->PrintMessage("The file \"%s\" is present, but it should not be", szFileName);
SFileCloseFile(hFile);
return true;
}
else
{
if(bShouldExist)
pLogger->PrintMessage("The file %s is not present, but it should be", szFileName);
pLogger->PrintMessage("The file \"%s\" is not present, but it should be", szFileName);
return false;
}
}