Windows Driver: fix bug in new IOCTL VC_IOCTL_GET_DRIVE_GEOMETRY_EX

This commit is contained in:
Mounir IDRASSI 2017-05-21 01:00:22 +02:00
parent 74b82118d5
commit 5081929b60
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -1491,8 +1491,6 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
NTSTATUS ntStatus;
DISK_GEOMETRY_EX geo = {0};
memset (g, 0, sizeof (DISK_GEOMETRY_EX_STRUCT));
EnsureNullTerminatedString (g->deviceName, sizeof (g->deviceName));
ntStatus = TCDeviceIoControl (g->deviceName,