X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fmisc.c;h=feabe15b5840fc1c64ea51e7cb8f46e9f51e5beb;hb=c35a25f6d66c530654e2f157387f3896d2a56270;hp=a16e64287c7c680051031f81686f85ed6943577b;hpb=0066437b12bb870cab4f7965bba3f4b2159d0fce;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) {