mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[NTOS:IO] Improve an alignment
This commit is contained in:
parent
06e631fafe
commit
e50873376d
1 changed files with 2 additions and 1 deletions
|
@ -1084,7 +1084,8 @@ IoCreateDevice(IN PDRIVER_OBJECT DriverObject,
|
||||||
if (DeviceName) ObjectAttributes.Attributes |= OBJ_PERMANENT;
|
if (DeviceName) ObjectAttributes.Attributes |= OBJ_PERMANENT;
|
||||||
|
|
||||||
/* Align the Extension Size to 8-bytes */
|
/* Align the Extension Size to 8-bytes */
|
||||||
AlignedDeviceExtensionSize = (DeviceExtensionSize + 7) &~ 7;
|
AlignedDeviceExtensionSize = ALIGN_UP_BY(DeviceExtensionSize,
|
||||||
|
MEMORY_ALLOCATION_ALIGNMENT);
|
||||||
|
|
||||||
/* Total Size */
|
/* Total Size */
|
||||||
TotalSize = AlignedDeviceExtensionSize +
|
TotalSize = AlignedDeviceExtensionSize +
|
||||||
|
|
Loading…
Reference in a new issue