diff options
author | aliaspider | 2014-10-31 00:32:50 +0100 |
---|---|---|
committer | aliaspider | 2014-10-31 00:32:50 +0100 |
commit | 545c5d00d6a1ee596d6992c498108cb3977a1b9a (patch) | |
tree | 30e5caea2512de13335f564da8186e9ff5dbb574 /source/apu.c | |
parent | 55f93efc8f9fa487103495ae90972b7ed8d4d824 (diff) | |
parent | c10370ed571d57032f435ddd69877318e7d5bd4b (diff) | |
download | snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.gz snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.bz2 snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.zip |
Merge branch 'master' of https://github.com/libretro/CATSFC-libretro
Diffstat (limited to 'source/apu.c')
-rw-r--r-- | source/apu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/apu.c b/source/apu.c index 56749ce..41fcfaa 100644 --- a/source/apu.c +++ b/source/apu.c @@ -133,7 +133,7 @@ void S9xResetAPU() Settings.APUEnabled = Settings.NextAPUEnabled; - ZeroMemory(IAPU.RAM, 0x100); + memset(IAPU.RAM, 0, 0x100); memset(IAPU.RAM + 0x20, 0xFF, 0x20); memset(IAPU.RAM + 0x60, 0xFF, 0x20); memset(IAPU.RAM + 0xA0, 0xFF, 0x20); @@ -142,7 +142,7 @@ void S9xResetAPU() for (i = 1; i < 256; i++) memcpy(IAPU.RAM + (i << 8), IAPU.RAM, 0x100); - ZeroMemory(APU.OutPorts, 4); + memset(APU.OutPorts, 0, 4); IAPU.DirectPage = IAPU.RAM; // memmove converted: Different mallocs [Neb] // DS2 DMA notes: The APU ROM is not 32-byte aligned [Neb] |