Fix memory corruption when reading Voodoo ROM (#169)

Fixes #131.
This commit is contained in:
Vort 2023-12-15 22:24:57 +02:00 committed by GitHub
parent 50258bf32e
commit 30db11d271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -833,6 +833,8 @@ void bx_banshee_c::mem_read(bx_phy_address addr, unsigned len, void *data)
case 1:
*((Bit8u*)data) = (Bit8u)value;
break;
case 3:
*((Bit8u*)data + 2) = (Bit8u)(value >> 16);
case 2:
*((Bit16u*)data) = (Bit16u)value;
break;