mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
poly88: Be safe when loading snapshots (nw)
This commit is contained in:
parent
63bda946e2
commit
8a2b84d598
@ -239,7 +239,8 @@ SNAPSHOT_LOAD_MEMBER(poly88_state::snapshot_cb)
|
||||
switch(recordType) {
|
||||
case 0 :
|
||||
/* 00 Absolute */
|
||||
memcpy(space.get_read_ptr(address ), data + pos ,recordLen);
|
||||
for (uint16_t j = 0; j < recordLen; j++)
|
||||
space.write_byte(address + j, data[pos + j]);
|
||||
break;
|
||||
case 1 :
|
||||
/* 01 Comment */
|
||||
|
Loading…
Reference in New Issue
Block a user