From 5081929b600b976f5797222968343385402129ca Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 21 May 2017 01:00:22 +0200 Subject: Windows Driver: fix bug in new IOCTL VC_IOCTL_GET_DRIVE_GEOMETRY_EX --- src/Driver/Ntdriver.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index ea9d725b..54fc5f03 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -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, -- cgit v1.2.3