summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMR3/DBGFReg.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2018-07-12 21:06:33 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2018-07-12 21:06:33 +0000
commit639b95a4fd23d483db9aa2cde0141dfe6505b865 (patch)
tree4215101939c8681d33bce4666af0c8b6a602ff53 /src/VBox/VMM/VMMR3/DBGFReg.cpp
parent8736f7453c8f053d64679ab639bf6a011ce165ab (diff)
downloadVirtualBox-svn-639b95a4fd23d483db9aa2cde0141dfe6505b865.tar.gz
*: Made RT_UOFFSETOF, RT_OFFSETOF, RT_UOFFSETOF_ADD and RT_OFFSETOF_ADD work like __builtin_offsetof() and require compile time resolvable requests, adding RT_UOFFSETOF_DYN for the dynamic questions that can only be answered at runtime.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@73097 cfe28804-0f27-0410-a406-dd0f0b0b656f
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 613ab07c6cf..b2a1e7403f1 100644
--- a/src/VBox/VMM/VMMR3/DBGFReg.cpp
+++ b/src/VBox/VMM/VMMR3/DBGFReg.cpp
@@ -345,7 +345,7 @@ static int dbgfR3RegRegisterCommon(PUVM pUVM, PCDBGFREGDESC paRegisters, DBGFREG
/*
* Allocate a new record and all associated lookup records.
*/
- size_t cbRegSet = RT_OFFSETOF(DBGFREGSET, szPrefix[cchPrefix + 4 + 1]);
+ size_t cbRegSet = RT_UOFFSETOF_DYN(DBGFREGSET, szPrefix[cchPrefix + 4 + 1]);
cbRegSet = RT_ALIGN_Z(cbRegSet, 32);
size_t const offLookupRecArray = cbRegSet;
cbRegSet += cLookupRecs * sizeof(DBGFREGLOOKUP);