diff --git a/src/sys/driver.c b/src/sys/driver.c index 1dbba6b6..fb17c438 100644 --- a/src/sys/driver.c +++ b/src/sys/driver.c @@ -109,7 +109,11 @@ FspUnload( PAGED_CODE(); if (0 != FspDeviceObject) + { + IoUnregisterFileSystem(FspDeviceObject); IoDeleteDevice(FspDeviceObject); + FspDeviceObject = 0; + } } PDEVICE_OBJECT FspDeviceObject;