This should no longer be necessary since XENVBD gracefully deactivates if
emulated devices are present, which they will be in safe mode.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
#include "assert.h"
#include <version.h>
-extern PULONG InitSafeBootMode;
-
typedef struct _XENDISK_DRIVER {
PDRIVER_OBJECT DriverObject;
} XENDISK_DRIVER, *PXENDISK_DRIVER;
DriverObject->DriverUnload = DriverUnload;
- if (*InitSafeBootMode > 0)
- goto done;
-
Verbose("XENDISK %d.%d.%d (%d) (%02d.%02d.%04d)\n",
MAJOR_VERSION,
MINOR_VERSION,
DriverObject->MajorFunction[Index] = Dispatch;
}
-done:
Trace("<====\n");
return STATUS_SUCCESS;
}
//=============================================================================
// Driver Redirections
-extern PULONG InitSafeBootMode;
__drv_dispatchType(IRP_MJ_PNP)
DRIVER_DISPATCH DispatchPnp;
MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR,
DAY_STR "/" MONTH_STR "/" YEAR_STR);
- if (*InitSafeBootMode > 0) {
- Status = STATUS_SUCCESS;
- goto done;
- }
-
InitializeObjectAttributes(&Attributes,
RegistryPath,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,