[NTOS:IO] Avoid hardcoding variable types in sizeofs when possible.

This commit is contained in:
Hermès Bélusca-Maïto 2021-06-10 19:30:45 +02:00
parent 6e65e6b28d
commit 99078646c3
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 6 additions and 6 deletions

View file

@ -1914,7 +1914,7 @@ IoGetBootDiskInformation(IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
NULL,
0,
&DiskGeometry,
sizeof(DISK_GEOMETRY),
sizeof(DiskGeometry),
FALSE,
&Event,
&IoStatusBlock);
@ -2023,7 +2023,7 @@ IoGetBootDiskInformation(IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
NULL,
0,
&PartitionInformation,
sizeof(PARTITION_INFORMATION_EX),
sizeof(PartitionInformation),
FALSE,
&Event,
&IoStatusBlock);
@ -2094,7 +2094,7 @@ IoGetBootDiskInformation(IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
NULL,
0,
&PartitionInformation,
sizeof(PARTITION_INFORMATION_EX),
sizeof(PartitionInformation),
FALSE,
&Event,
&IoStatusBlock);

View file

@ -274,7 +274,7 @@ IopCreateArcNamesCd(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
NULL,
0,
&DeviceNumber,
sizeof(STORAGE_DEVICE_NUMBER),
sizeof(DeviceNumber),
FALSE,
&Event,
&IoStatusBlock);
@ -499,7 +499,7 @@ IopCreateArcNamesDisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
NULL,
0,
&DeviceNumber,
sizeof(STORAGE_DEVICE_NUMBER),
sizeof(DeviceNumber),
FALSE,
&Event,
&IoStatusBlock);
@ -581,7 +581,7 @@ IopCreateArcNamesDisk(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
NULL,
0,
&DiskGeometry,
sizeof(DISK_GEOMETRY),
sizeof(DiskGeometry),
FALSE,
&Event,
&IoStatusBlock);