VirtualBox

Changeset 21109 in vbox


Ignore:
Timestamp:
Jul 1, 2009 12:49:37 AM (16 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Fixed RT_FROM_MEMBER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r21092 r21109  
    10541054 * @param   Member  Member name.
    10551055 */
    1056 #define RT_FROM_MEMBER(pMem, Type, Member)      ( (Type *) ((uint8_t *)(void *)(pMem) + RT_UOFFSETOF(Type, Member)) )
     1056#define RT_FROM_MEMBER(pMem, Type, Member)      ( (Type *) ((uint8_t *)(void *)(pMem) - RT_UOFFSETOF(Type, Member)) )
    10571057
    10581058/** @def RT_ELEMENTS
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