notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4218954
)
cdrom: do a NULL check, some plugins may return that
author
notaz
<notasas@gmail.com>
Mon, 6 Jun 2011 15:48:41 +0000
(18:48 +0300)
committer
notaz
<notasas@gmail.com>
Mon, 6 Jun 2011 15:48:41 +0000
(18:48 +0300)
libpcsxcore/cdrom.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdrom.c
b/libpcsxcore/cdrom.c
index
142c1e2
..
c82b6da
100644
(file)
--- 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);
}