This commit is contained in:
Bill Zissimopoulos 2015-11-29 13:45:58 -08:00
parent 7bacee130d
commit b4f64c3378

View File

@ -132,16 +132,9 @@ VOID FspUnload(
{ {
FSP_ENTER_VOID(PAGED_CODE()); FSP_ENTER_VOID(PAGED_CODE());
if (0 != FspFsctlDiskDeviceObject)
{
IoDeleteDevice(FspFsctlDiskDeviceObject);
FspFsctlDiskDeviceObject = 0; FspFsctlDiskDeviceObject = 0;
}
if (0 != FspFsctlNetDeviceObject)
{
IoDeleteDevice(FspFsctlNetDeviceObject);
FspFsctlNetDeviceObject = 0; FspFsctlNetDeviceObject = 0;
} FspDeviceDeleteObjects(DriverObject);
#pragma prefast(suppress:28175, "We are in DriverUnload: ok to access DriverName") #pragma prefast(suppress:28175, "We are in DriverUnload: ok to access DriverName")
FSP_LEAVE_VOID("DriverName=\"%wZ\"", FSP_LEAVE_VOID("DriverName=\"%wZ\"",