mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +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;
|
||||
|
||||
/* Align the Extension Size to 8-bytes */
|
||||
AlignedDeviceExtensionSize = (DeviceExtensionSize + 7) &~ 7;
|
||||
AlignedDeviceExtensionSize = ALIGN_UP_BY(DeviceExtensionSize,
|
||||
MEMORY_ALLOCATION_ALIGNMENT);
|
||||
|
||||
/* Total Size */
|
||||
TotalSize = AlignedDeviceExtensionSize +
|
||||
|
|
Loading…
Reference in a new issue