VirtualBox

Changeset 66087 in vbox


Ignore:
Timestamp:
Mar 14, 2017 12:53:38 PM (8 years ago)
Author:
vboxsync
Message:

VBox/shflsvc.h: There should be no reason to pack SHFLSTRING, it's naturally 16-bit aligned as it is made up of 16-bit members..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/shflsvc.h

    r62476 r66087  
    3232#include <VBox/hgcmsvc.h>
    3333#include <iprt/fs.h>
     34#include <iprt/assert.h>
    3435
    3536
     
    153154 * Shared folder string buffer structure.
    154155 */
    155 #pragma pack(1)
    156156typedef struct _SHFLSTRING
    157157{
     
    165165    union
    166166    {
    167         uint8_t  utf8[1];
     167        uint8_t  utf8[2];
    168168        uint16_t ucs2[1];
    169169    } String;
    170170} SHFLSTRING;
    171 #pragma pack()
     171AssertCompileSize(SHFLSTRING, 6);
    172172
    173173#define SHFLSTRING_HEADER_SIZE RT_UOFFSETOF(SHFLSTRING, String)
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