This driver does nothing that clashes with any emulation so it's fine to
leave it emabled in safe mode.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
#include "assert.h"
#include "wmi.h"
-extern PULONG InitSafeBootMode;
PDRIVER_OBJECT DriverObject;
Trace("====>\n");
- if (*InitSafeBootMode > 0)
- goto done;
-
-
if (DriverParameters.RegistryPath.Buffer != NULL) {
ExFreePool(DriverParameters.RegistryPath.Buffer);
}
-done:
DriverObject = NULL;
Trace("<====\n");
DriverObject = _DriverObject;
DriverObject->DriverUnload = DriverUnload;
- if (*InitSafeBootMode > 0)
- goto done;
-
DriverObject->DriverExtension->AddDevice = AddDevice;
for (Index = 0; Index <= IRP_MJ_MAXIMUM_FUNCTION; Index++) {
DriverObject->MajorFunction[Index] = Dispatch;
}
-done:
Trace("<====\n");
return STATUS_SUCCESS;