notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
final fixes for UIQ3
[picodrive.git]
/
Pico
/
cd
/
Area.c
diff --git
a/Pico/cd/Area.c
b/Pico/cd/Area.c
index
c4bb2ed
..
164d272
100644
(file)
--- a/
Pico/cd/Area.c
+++ b/
Pico/cd/Area.c
@@
-174,7
+174,7
@@
static int g_read_offs = 0;
// when is eof really set?
#define CHECKED_READ(len,data) \
if (areaRead(data, 1, len, file) != len) { \
// when is eof really set?
#define CHECKED_READ(len,data) \
if (areaRead(data, 1, len, file) != len) { \
- if (len == 1 && areaEof(file))
return 0
; \
+ if (len == 1 && areaEof(file))
goto readend
; \
R_ERROR_RETURN("areaRead: premature EOF\n"); \
return 1; \
} \
R_ERROR_RETURN("areaRead: premature EOF\n"); \
return 1; \
} \
@@
-269,6
+269,7
@@
PICO_INTERNAL int PicoCdLoadState(void *file)
breakswitch:;
}
breakswitch:;
}
+readend:
if (PicoAHW & PAHW_MCD)
{
/* after load events */
if (PicoAHW & PAHW_MCD)
{
/* after load events */
@@
-324,6
+325,7
@@
int PicoCdLoadStateGfx(void *file)
}
}
}
}
+readend:
return 0;
}
return 0;
}