X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fmisc.c;h=feabe15b5840fc1c64ea51e7cb8f46e9f51e5beb;hb=ab88daca6f1367543d88b35e04a7999f3e36a0ff;hp=702f690fb0e8b1017a6c75b4edcc23f810611a23;hpb=cfa5a2aff5202aadca7d19c76b61c80cec5b327c;p=pcsx_rearmed.git diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 702f690f..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) { @@ -243,7 +243,7 @@ int LoadCdrom() { getFromCnf((char *)buf + 12, "EVENT", &cnf_event); getFromCnf((char *)buf + 12, "STACK", &cnf_stack); if (Config.HLE) - psxBiosCnfLoaded(cnf_tcb, cnf_event); + psxBiosCnfLoaded(cnf_tcb, cnf_event, cnf_stack); // Read the EXE-Header READTRACK();