[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, NULL,
0, 0,
&DiskGeometry, &DiskGeometry,
sizeof(DISK_GEOMETRY), sizeof(DiskGeometry),
FALSE, FALSE,
&Event, &Event,
&IoStatusBlock); &IoStatusBlock);
@ -2023,7 +2023,7 @@ IoGetBootDiskInformation(IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
NULL, NULL,
0, 0,
&PartitionInformation, &PartitionInformation,
sizeof(PARTITION_INFORMATION_EX), sizeof(PartitionInformation),
FALSE, FALSE,
&Event, &Event,
&IoStatusBlock); &IoStatusBlock);
@ -2094,7 +2094,7 @@ IoGetBootDiskInformation(IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
NULL, NULL,
0, 0,
&PartitionInformation, &PartitionInformation,
sizeof(PARTITION_INFORMATION_EX), sizeof(PartitionInformation),
FALSE, FALSE,
&Event, &Event,
&IoStatusBlock); &IoStatusBlock);

View file

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