From 4f0c5e3fd702a35b7a2ebc22519f59bbae7b3008 Mon Sep 17 00:00:00 2001 From: gameblabla Date: Sat, 25 Sep 2021 13:24:52 +0200 Subject: [PATCH] Fix regression caused by #9361a5aa4fef73e06bc78b7c462eb28a7d12e3d0 Not sure why it caused that but it causes the function to fail. I don't want to wait months for him to fix it properly so let's just do that for now. --- libpcsxcore/cdriso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index ee234212..c6678dbc 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1754,7 +1754,7 @@ static long CALLBACK ISOopen(void) { if (ftello(cdHandle) % 2048 == 0) { unsigned int modeTest = 0; fseek(cdHandle, 0, SEEK_SET); - if (fread(&modeTest, sizeof(modeTest), 1, cdHandle) != sizeof(modeTest)) { + if (!fread(&modeTest, sizeof(modeTest), 1, cdHandle)) { #ifndef NDEBUG SysPrintf(_("File IO error in <%s:%s>.\n"), __FILE__, __func__); #endif -- 2.39.5