fpexiblk: not using eximap for now, so don't try to finalise it on sad paths

this is probably what's causing bugchecks when no exi device is present
This commit is contained in:
Rairii
2025-03-01 23:40:23 +00:00
parent 6aa9f2e54f
commit edfd876679

View File

@@ -1371,7 +1371,7 @@ NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
}
if (InitedDevices == 0) {
ExiMapFinalise();
//ExiMapFinalise();
return STATUS_NO_SUCH_DEVICE;
}
@@ -1393,7 +1393,7 @@ NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
}
if (!MountedAtLeastOneDevice) {
ExiMapFinalise();
//ExiMapFinalise();
return STATUS_NO_SUCH_DEVICE;
}
@@ -1501,7 +1501,7 @@ NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
char path[4] = { '0' + drive, ':', 0, 0 };
f_unmount(path);
}
ExiMapFinalise();
//ExiMapFinalise();
// Return no such device.
return STATUS_NO_SUCH_DEVICE;
}