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:
4726dba
)
misc: don't succeed on trash input
author
notaz
<notasas@gmail.com>
Sat, 6 Dec 2014 17:14:34 +0000
(19:14 +0200)
committer
Adrien Plazas
<kekun.plazas@laposte.net>
Sun, 7 Dec 2014 08:35:02 +0000
(09:35 +0100)
libpcsxcore/misc.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
874624d
..
905f142
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-109,6
+109,7
@@
void mmssdd( char *b, char *p )
int GetCdromFile(u8 *mdir, u8 *time, char *filename) {
struct iso_directory_record *dir;
+ int retval = -1;
u8 ddir[4096];
u8 *buf;
int i;
@@
-138,11
+139,12
@@
int GetCdromFile(u8 *mdir, u8 *time, char *filename) {
} else {
if (!strnicmp((char *)&dir->name[0], filename, strlen(filename))) {
mmssdd(dir->extent, (char *)time);
+ retval = 0;
break;
}
}
}
- return
0
;
+ return
retval
;
}
static const unsigned int gpu_ctl_def[] = {