mirror of
https://github.com/RetroDECK/org.mamedev.MAME.git
synced 2025-01-19 11:05:37 +00:00
Merge pull request #19 from flathub/ym3802
Patch out of bound access on ym3802 midi
This commit is contained in:
commit
7fd87772f0
|
@ -83,3 +83,5 @@ modules:
|
||||||
path: floppy.patch
|
path: floppy.patch
|
||||||
- type: patch
|
- type: patch
|
||||||
path: sound.patch
|
path: sound.patch
|
||||||
|
- type: patch
|
||||||
|
path: ym3802.patch
|
||||||
|
|
13
ym3802.patch
Normal file
13
ym3802.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/devices/machine/ym3802.cpp b/src/devices/machine/ym3802.cpp
|
||||||
|
index 4a8f6a7ffae..d1bf2b961f6 100644
|
||||||
|
--- a/src/devices/machine/ym3802.cpp
|
||||||
|
+++ b/src/devices/machine/ym3802.cpp
|
||||||
|
@@ -45,7 +45,7 @@ void ym3802_device::device_start()
|
||||||
|
|
||||||
|
void ym3802_device::device_reset()
|
||||||
|
{
|
||||||
|
- m_reg.clear();
|
||||||
|
+ m_reg.assign(REG_MAX, 0);
|
||||||
|
reset_irq(0xff);
|
||||||
|
transmit_register_reset();
|
||||||
|
receive_register_reset();
|
Loading…
Reference in a new issue