VirtualBox

Ignore:
Timestamp:
Jul 12, 2018 9:06:33 PM (6 years ago)
Author:
vboxsync
Message:

*: 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PATMPatch.cpp

    r69111 r73097  
    12291229
    12301230    AssertReturn(dbgreg <= DISDREG_DR7, VERR_INVALID_PARAMETER);
    1231     offset = RT_OFFSETOF(CPUMCTX, dr[dbgreg]);
     1231    offset = RT_UOFFSETOF_DYN(CPUMCTX, dr[dbgreg]);
    12321232
    12331233    *(RTRCPTR *)&pPB[2] = pVM->patm.s.pCPUMCtxGC + offset;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette