From a48ae3a7decaae1f0bbc45fb0ce37e030fd5357b Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 6 Jun 2011 18:48:41 +0300 Subject: [PATCH] cdrom: do a NULL check, some plugins may return that --- libpcsxcore/cdrom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5