Skip to content

Commit

Permalink
Fix crash in xmen6p
Browse files Browse the repository at this point in the history
  • Loading branch information
amadvance committed Feb 18, 2017
1 parent 5c2d15b commit 0d4333b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/history.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Name

AdvanceMAME/MESS Version 3.3 2017/02
) Fixed handling of input_map[] definitions [Vincent Hamon].
) Fixed crashes in games xmen6p and xmen6pu.

AdvanceMAME/MESS Version 3.2 2017/01
) Fixed a terminating hanging condition when dealing with the
Expand Down
4 changes: 2 additions & 2 deletions src/sound/k054539.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ static void K054539_init_chip(struct k054539_info *info, int sndindex)
info->K054539_flags |= K054539_UPDATE_AT_KEYON; //* make it default until proven otherwise

// Real size of 0x4000, the addon is to simplify the reverb buffer computations
info->ram = auto_malloc(0x4000*2+48000/55*2);
info->ram = auto_malloc(0x4000*2+48000/55*2+0x4000);
info->reverb_pos = 0;
info->cur_ptr = 0;
memset(info->ram, 0, 0x4000*2+48000/55*2);
memset(info->ram, 0, 0x4000*2+48000/55*2+0x4000);

info->rom = memory_region(info->intf->region);
info->rom_size = memory_region_length(info->intf->region);
Expand Down

0 comments on commit 0d4333b

Please sign in to comment.