VirtualBox

Changeset 98815 in vbox


Ignore:
Timestamp:
Mar 2, 2023 12:50:11 PM (21 months ago)
Author:
vboxsync
Message:

Guest Control: Removed #pragma pack directives, added AssertCompileSize() [build fix]. bugref:9783

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/GuestControl.h

    r98814 r98815  
    406406    } u;
    407407} GSTCTLFSOBJATTR;
    408 AssertCompileSize(GSTCTLFSOBJATTR, sizeof(RTFMODE) + sizeof(GSTCTLFSOBJATTRADD) + 128);
     408AssertCompileSize(GSTCTLFSOBJATTR /* 136 */, sizeof(RTFMODE) + sizeof(GSTCTLFSOBJATTRADD) + 128);
    409409/** Pointer to a guest filesystem object attributes structure. */
    410410typedef GSTCTLFSOBJATTR *PGSTCTLFSOBJATTR;
     
    507507
    508508} GSTCTLFSOBJINFO;
    509 AssertCompileSize(GSTCTLFSOBJINFO, 48 + sizeof(GSTCTLFSOBJATTR));
     509AssertCompileSize(GSTCTLFSOBJINFO /* 184 */, 48 + sizeof(GSTCTLFSOBJATTR));
    510510/** Pointer to a guest filesystem object information structure. */
    511511typedef GSTCTLFSOBJINFO *PGSTCTLFSOBJINFO;
     
    518518 * This is inspired by IPRT + the PC interfaces.
    519519 */
     520#pragma pack(1)
    520521typedef struct GSTCTLDIRENTRYEX
    521522{
     
    536537    char            szName[260];
    537538} GSTCTLDIRENTRYEX;
    538 AssertCompileSize(GSTCTLDIRENTRYEX, sizeof(GSTCTLFSOBJINFO) + 296);
     539#pragma pack()
     540AssertCompileSize(GSTCTLDIRENTRYEX, sizeof(GSTCTLFSOBJINFO) + 292);
    539541/** Pointer to a guest directory entry. */
    540542typedef GSTCTLDIRENTRYEX *PGSTCTLDIRENTRYEX;
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