From: notaz Date: Mon, 6 Jun 2011 15:48:41 +0000 (+0300) Subject: cdrom: do a NULL check, some plugins may return that X-Git-Tag: r9~92 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=a48ae3a7decaae1f0bbc45fb0ce37e030fd5357b cdrom: do a NULL check, some plugins may return that --- 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); }