notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
attempt to improve guncon defaults
[pcsx_rearmed.git]
/
libpcsxcore
/
misc.c
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
a16e642
..
feabe15
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-112,7
+112,7
@@
int GetCdromFile(u8 *mdir, u8 *time, char *filename) {
int i;
// only try to scan if a filename is given
int i;
// only try to scan if a filename is given
- if (!strlen(filename)) return -1;
+ if (
filename == INVALID_PTR ||
!strlen(filename)) return -1;
i = 0;
while (i < 4096) {
i = 0;
while (i < 4096) {