VirtualBox

Changeset 38602 in vbox


Ignore:
Timestamp:
Sep 1, 2011 5:10:23 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73805
Message:

Additions/common/VBoxGuest: try to fix a burn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r38598 r38602  
    171171     *          following it (to grow into and align the struct size).
    172172     */
    173 #if HC_ARCH_BITS == 32  /* Disabled for now to prevent a zero-sized array. */
    174     uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 20 : 0];
     173#ifdef VBOXGUEST_USE_DEFERRED_WAKE_UP
     174    uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 12 : 52];
     175#else
     176    uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 20 : 4];
    175177#endif
    176178
     
    188190typedef VBOXGUESTDEVEXT *PVBOXGUESTDEVEXT;
    189191
     192#if defined(VBOXGUEST_USE_DEFERRED_WAKE_UP) && HC_ARCH_BITS == 64
     193AssertCompileMemberOffset(VBOXGUESTDEVEXT, win, 384);
     194#elif HC_ARCH_BITS == 64
     195AssertCompileMemberOffset(VBOXGUESTDEVEXT, win, 320);
     196#else
     197AssertCompileMemberOffset(VBOXGUESTDEVEXT, win, 256);
     198#endif
    190199AssertCompileMemberSizeAlignment(VBOXGUESTDEVEXT, win, 64);
    191200
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