sys: FSP_FSVRT_DEVICE_EXTENSION: align SecurityDescriptorBuf

This commit is contained in:
Bill Zissimopoulos 2015-12-01 10:46:06 -08:00
parent 5e205329ea
commit 6cf0f2d34f
3 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,8 @@ extern const __declspec(selectany) GUID FspFsvrtDeviceClassGuid =
/* alignment macros */
#define FSP_FSCTL_ALIGN_UP(x, s) (((x) + ((s) - 1L)) & ~((s) - 1L))
#define FSP_FSCTL_DEFAULT_ALIGNMENT (sizeof(UINT64) * 2)
#define FSP_FSCTL_DEFAULT_ALIGNMENT (16)
#define FSP_FSCTL_DECLSPEC_ALIGN __declspec(align(16))
/* fsctl device codes */
#define FSP_FSCTL_CREATE \

View File

@ -271,7 +271,7 @@ typedef struct
FSP_IOQ Ioq;
PVPB SwapVpb;
BOOLEAN Deleted;
UINT8 SecurityDescriptorBuf[];
FSP_FSCTL_DECLSPEC_ALIGN UINT8 SecurityDescriptorBuf[];
} FSP_FSVRT_DEVICE_EXTENSION;
typedef struct
{

View File

@ -47,7 +47,7 @@ BOOLEAN FspValidRelativeSecurityDescriptor(
Result = RtlValidRelativeSecurityDescriptor(SecurityDescriptor, SecurityDescriptorLength,
RequiredInformation);
}
except(EXCEPTION_EXECUTE_HANDLER)
except (EXCEPTION_EXECUTE_HANDLER)
{
Result = FALSE;
}