From 12e78032af701d7ec9ca661753521fdc80348506 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sat, 1 Jun 2024 08:11:09 +0200 Subject: [PATCH] Banshee / Voodoo3: Fixed check for address wrap during update(). --- bochs/iodev/display/voodoo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/iodev/display/voodoo.cc b/bochs/iodev/display/voodoo.cc index 9b88733e0..e8f128526 100644 --- a/bochs/iodev/display/voodoo.cc +++ b/bochs/iodev/display/voodoo.cc @@ -599,8 +599,8 @@ void bx_voodoo_base_c::update(void) iHeight = s.vdraw.height; start &= v->fbi.mask; Bit8u *disp_ptr = &v->fbi.ram[start]; - if ((start + pitch * iHeight) > v->fbi.mask) { - BX_ERROR(("update(): skip address wrap (start = 0x%08x)", start)); + if ((start + pitch * iHeight) > (v->fbi.mask + 1)) { + BX_ERROR(("skip address wrap during update() (start = 0x%08x)", start)); BX_UNLOCK(render_mutex); return; }