cdrom: do a NULL check, some plugins may return that
authornotaz <notasas@gmail.com>
Mon, 6 Jun 2011 15:48:41 +0000 (18:48 +0300)
committernotaz <notasas@gmail.com>
Mon, 6 Jun 2011 15:48:41 +0000 (18:48 +0300)
libpcsxcore/cdrom.c

index 142c1e2..c82b6da 100644 (file)
@@ -1216,7 +1216,8 @@ void cdrInterrupt() {
                        // - fixes cutscene speech
                        {
                                u8 *buf = CDR_getBuffer();
                        // - fixes cutscene speech
                        {
                                u8 *buf = CDR_getBuffer();
-                               memcpy(cdr.Transfer, buf, 8);
+                               if (buf != NULL)
+                                       memcpy(cdr.Transfer, buf, 8);
                        }
                        
                        
                        }