mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 17:03:12 -05:00
sys: FSP_FSVRT_DEVICE_EXTENSION: align SecurityDescriptorBuf
This commit is contained in:
parent
5e205329ea
commit
6cf0f2d34f
@ -21,7 +21,8 @@ extern const __declspec(selectany) GUID FspFsvrtDeviceClassGuid =
|
|||||||
|
|
||||||
/* alignment macros */
|
/* alignment macros */
|
||||||
#define FSP_FSCTL_ALIGN_UP(x, s) (((x) + ((s) - 1L)) & ~((s) - 1L))
|
#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 */
|
/* fsctl device codes */
|
||||||
#define FSP_FSCTL_CREATE \
|
#define FSP_FSCTL_CREATE \
|
||||||
|
@ -271,7 +271,7 @@ typedef struct
|
|||||||
FSP_IOQ Ioq;
|
FSP_IOQ Ioq;
|
||||||
PVPB SwapVpb;
|
PVPB SwapVpb;
|
||||||
BOOLEAN Deleted;
|
BOOLEAN Deleted;
|
||||||
UINT8 SecurityDescriptorBuf[];
|
FSP_FSCTL_DECLSPEC_ALIGN UINT8 SecurityDescriptorBuf[];
|
||||||
} FSP_FSVRT_DEVICE_EXTENSION;
|
} FSP_FSVRT_DEVICE_EXTENSION;
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -47,7 +47,7 @@ BOOLEAN FspValidRelativeSecurityDescriptor(
|
|||||||
Result = RtlValidRelativeSecurityDescriptor(SecurityDescriptor, SecurityDescriptorLength,
|
Result = RtlValidRelativeSecurityDescriptor(SecurityDescriptor, SecurityDescriptorLength,
|
||||||
RequiredInformation);
|
RequiredInformation);
|
||||||
}
|
}
|
||||||
except(EXCEPTION_EXECUTE_HANDLER)
|
except (EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
Result = FALSE;
|
Result = FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user