diff options
| author | 2013-04-03 04:26:18 +0000 | |
|---|---|---|
| committer | 2013-04-03 04:26:18 +0000 | |
| commit | 1e83d998b7476aa0947fb8a8dbd51cfec22d8496 (patch) | |
| tree | b52581d4b5e2ab1f5b31603e952c23c3dad9814e /src/emu/debug | |
| parent | d4acb382a9d09aeda4b4923856914893e1cac8ec (diff) | |
Fix visual studio compile. (nw)
Diffstat (limited to 'src/emu/debug')
| -rw-r--r-- | src/emu/debug/debugcpu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index 05eae6750e8..53b623c8be5 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -2778,8 +2778,8 @@ UINT32 device_debug::compute_opcode_crc32(offs_t address) const int maxbytes = m_disasm->max_opcode_bytes(); // fetch the arg and op bytes & mash 'em into a single buffer - UINT8 buff[maxbytes*2]; - memset(buff, 0x00, sizeof(buff)); + UINT8* buff = new UINT8(maxbytes*2); + memset(buff, 0x00, sizeof(UINT8)*maxbytes*2); for (int index = 0; index < maxbytes; index++) { buff[index] = debug_read_opcode(space, address + index, 1, false); @@ -2787,7 +2787,9 @@ UINT32 device_debug::compute_opcode_crc32(offs_t address) const } // return a CRC of the resulting bytes - return crc32(0, buff, maxbytes*2); + UINT32 crc = crc32(0, buff, maxbytes*2); + delete[] buff; + return crc; } |
