summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMR3/DBGFReg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/VMM/VMMR3/DBGFReg.cpp')
-rw-r--r--src/VBox/VMM/VMMR3/DBGFReg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/VMM/VMMR3/DBGFReg.cpp b/src/VBox/VMM/VMMR3/DBGFReg.cpp
index d020e757ce9..7298836d1d1 100644
--- a/src/VBox/VMM/VMMR3/DBGFReg.cpp
+++ b/src/VBox/VMM/VMMR3/DBGFReg.cpp
@@ -859,7 +859,7 @@ static int dbgfR3RegCpuQueryWorker(PVM pVM, VMCPUID idCpu, DBGFREG enmReg, DBGFR
VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE);
AssertMsgReturn(enmReg >= DBGFREG_AL && enmReg <= DBGFREG_END, ("%d\n", enmReg), VERR_INVALID_PARAMETER);
- bool const fGuestRegs = idCpu & DBGFREG_HYPER_VMCPUID;
+ bool const fGuestRegs = !(idCpu & DBGFREG_HYPER_VMCPUID);
idCpu &= ~DBGFREG_HYPER_VMCPUID;
AssertReturn(idCpu < pVM->cCpus, VERR_INVALID_CPU_ID);