X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fmisc.c;h=feabe15b5840fc1c64ea51e7cb8f46e9f51e5beb;hb=0a50313e5c9a6470e37e1dab99022eb481b6b5f7;hp=a16e64287c7c680051031f81686f85ed6943577b;hpb=825757532f4b9a30f25c491267d544e02730e2e8;p=pcsx_rearmed.git diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index a16e6428..feabe15b 100644 --- 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 - if (!strlen(filename)) return -1; + if (filename == INVALID_PTR || !strlen(filename)) return -1; i = 0; while (i < 4096) {