[PARTMGR] Fix x64 build warning

warning C4267: 'function': conversion from 'size_t' to 'ULONG', possible loss of data'

The OutputBufferLength member that was temporarily stored in
outBufferLength is already a ULONG, and IssueSyncIoControlRequest()
takes the length as a ULONG. So there is no need to use 'size_t' here.
This commit is contained in:
Hermès Bélusca-Maïto 2024-05-23 15:03:26 +02:00
parent ba6e9a09be
commit 2d6bbdc6ed
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -367,7 +367,7 @@ FdoIoctlDiskGetDriveGeometryEx(
// as disk.sys doesn't really know about the partition table on a disk // as disk.sys doesn't really know about the partition table on a disk
PDISK_GEOMETRY_EX_INTERNAL geometryEx = Irp->AssociatedIrp.SystemBuffer; PDISK_GEOMETRY_EX_INTERNAL geometryEx = Irp->AssociatedIrp.SystemBuffer;
size_t outBufferLength = ioStack->Parameters.DeviceIoControl.OutputBufferLength; ULONG outBufferLength = ioStack->Parameters.DeviceIoControl.OutputBufferLength;
NTSTATUS status; NTSTATUS status;
status = IssueSyncIoControlRequest(IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, status = IssueSyncIoControlRequest(IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,