From b4f64c337898b4c14a8bd86247ef6ebe1e117740 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sun, 29 Nov 2015 13:45:58 -0800 Subject: [PATCH] sys: WIP --- src/sys/driver.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/sys/driver.c b/src/sys/driver.c index acdb0195..4e174218 100644 --- a/src/sys/driver.c +++ b/src/sys/driver.c @@ -132,16 +132,9 @@ VOID FspUnload( { FSP_ENTER_VOID(PAGED_CODE()); - if (0 != FspFsctlDiskDeviceObject) - { - IoDeleteDevice(FspFsctlDiskDeviceObject); - FspFsctlDiskDeviceObject = 0; - } - if (0 != FspFsctlNetDeviceObject) - { - IoDeleteDevice(FspFsctlNetDeviceObject); - FspFsctlNetDeviceObject = 0; - } + FspFsctlDiskDeviceObject = 0; + FspFsctlNetDeviceObject = 0; + FspDeviceDeleteObjects(DriverObject); #pragma prefast(suppress:28175, "We are in DriverUnload: ok to access DriverName") FSP_LEAVE_VOID("DriverName=\"%wZ\"",