From: gameblabla Date: Sat, 25 Sep 2021 11:24:52 +0000 (+0200) Subject: Fix regression caused by #9361a5aa4fef73e06bc78b7c462eb28a7d12e3d0 X-Git-Tag: r24l~561 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=4f0c5e3fd702a35b7a2ebc22519f59bbae7b3008;hp=-c;p=pcsx_rearmed.git 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. --- 4f0c5e3fd702a35b7a2ebc22519f59bbae7b3008 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