diff --git a/drivers/storage/partmgr/partmgr.c b/drivers/storage/partmgr/partmgr.c index c606a46ead0..4eee95e11fd 100644 --- a/drivers/storage/partmgr/partmgr.c +++ b/drivers/storage/partmgr/partmgr.c @@ -367,7 +367,7 @@ FdoIoctlDiskGetDriveGeometryEx( // as disk.sys doesn't really know about the partition table on a disk PDISK_GEOMETRY_EX_INTERNAL geometryEx = Irp->AssociatedIrp.SystemBuffer; - size_t outBufferLength = ioStack->Parameters.DeviceIoControl.OutputBufferLength; + ULONG outBufferLength = ioStack->Parameters.DeviceIoControl.OutputBufferLength; NTSTATUS status; status = IssueSyncIoControlRequest(IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,