summaryrefslogtreecommitdiff
path: root/emulators/virtualbox-ose/files/patch-include-VBox-vmm-cpumctx.h
blob: 001f3f9a16b57cf3aa2821f3597d537761037f6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- include/VBox/vmm/cpumctx.h.orig	2015-03-12 18:53:45.762704000 -0400
+++ include/VBox/vmm/cpumctx.h	2015-03-12 18:56:23.765105000 -0400
@@ -84,7 +84,7 @@
 # define CPUMSELREG_ARE_HIDDEN_PARTS_VALID(a_pVCpu, a_pSelReg) \
     (   ((a_pSelReg)->fFlags & CPUMSELREG_FLAGS_VALID) \
      && (   (a_pSelReg)->ValidSel == (a_pSelReg)->Sel \
-         || (   (a_pVCpu) /*!= NULL*/ \
+         || (   ((a_pVCpu) != NULL) \
              && (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_OFF_RPL) \
              && ((a_pSelReg)->Sel      & X86_SEL_RPL) == 1 \
              && ((a_pSelReg)->ValidSel & X86_SEL_RPL) == 0 \