X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fcdrom.c;h=c82b6dafc9e6ab0e599ccbf9d3d6d07ed1801aba;hp=142c1e205df0c7ac2023d88be26e689f6021a51e;hb=ab948f7e6d437dddd070000f36489d7e983eb4ad;hpb=2f24625423d65f64e835905223b61352233bd111 diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 142c1e20..c82b6daf 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -1216,7 +1216,8 @@ void cdrInterrupt() { // - fixes cutscene speech { u8 *buf = CDR_getBuffer(); - memcpy(cdr.Transfer, buf, 8); + if (buf != NULL) + memcpy(cdr.Transfer, buf, 8); }