Mercurial > repos > blastem
diff romdb.c @ 1983:a7b753e260a2 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 09 May 2020 23:39:44 -0700 |
parents | 42c12d141f6e |
children | 0f54a898db03 |
line wrap: on
line diff
--- a/romdb.c Sun Apr 19 00:59:49 2020 -0700 +++ b/romdb.c Sat May 09 23:39:44 2020 -0700 @@ -675,7 +675,9 @@ *map = lock_info.map[i]; if (map->start < 0x200000) { if (map->buffer) { - map->buffer += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); + uint8_t *buf = map->buffer; + buf += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); + map->buffer = buf; } map->start = 0x200000; }