mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-11 18:36:46 +02:00
move safeboot check into DriverEntry
This commit is contained in:
parent
8680805b26
commit
170713f571
1 changed files with 1 additions and 3 deletions
|
@ -319,8 +319,6 @@ RawaccelInit(WDFDRIVER driver)
|
|||
{
|
||||
NTSTATUS status;
|
||||
|
||||
if (*InitSafeBootMode > 0) return;
|
||||
|
||||
status = CreateControlDevice(driver);
|
||||
|
||||
if (!NT_SUCCESS(status)) {
|
||||
|
@ -472,7 +470,7 @@ Routine Description:
|
|||
|
||||
|
||||
if (NT_SUCCESS(status)) {
|
||||
RawaccelInit(driver);
|
||||
if (*InitSafeBootMode == 0) RawaccelInit(driver);
|
||||
}
|
||||
else {
|
||||
DebugPrint(("WdfDriverCreate failed with status 0x%x\n", status));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue