notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ead11
)
Fix regression caused by #9361a5aa4fef73e06bc78b7c462eb28a7d12e3d0
author
gameblabla
<gameblabla@protonmail.com>
Sat, 25 Sep 2021 11:24:52 +0000
(13:24 +0200)
committer
gameblabla
<gameblabla@protonmail.com>
Sat, 25 Sep 2021 11:24:52 +0000
(13:24 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdriso.c
b/libpcsxcore/cdriso.c
index
ee23421
..
c6678db
100644
(file)
--- 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