diff --git a/bochs/gui/win32_enh_dbg.cc b/bochs/gui/win32_enh_dbg.cc index 6835efe1c..e534cd714 100755 --- a/bochs/gui/win32_enh_dbg.cc +++ b/bochs/gui/win32_enh_dbg.cc @@ -843,7 +843,7 @@ void FillRegs() rV[RSP_Rnum] = rV[ESP_Rnum]; #else // copy the lower dwords of RAX - RBP to EAX - EBP (with 32bit truncation) - i = RBP_Rnum + 1; + i = RIP_Rnum + 1; while (--i >= 0) rV[i + (EAX_Rnum - RAX_Rnum)] = GET32L(rV[i]); #endif