Update Driver.c

This commit is contained in:
V2
2024-02-24 13:07:03 +01:00
committed by GitHub
parent 9474e777ae
commit 2e8e7638b0
+2 -2
View File
@@ -665,6 +665,7 @@ DWORD InializeOffsets( ) {
if (eoffsets.ActiveProcessLinks_offset && eoffsets.Token_offset && eoffsets.protection_offset)
return (STATUS_SUCCESS);
DbgPrint("Unsupported Windows build %lu. Please open an issue in the repository", pversion.dwBuildNumber);
return (STATUS_UNSUCCESSFUL);
}
@@ -687,12 +688,11 @@ DriverEntry(
if (InializeOffsets())
{
DbgPrint("Unsupported windows build please open an issue in the repository");
unloadv(driverObject);
return (STATUS_UNSUCCESSFUL);
}
DbgPrint("offsets initialize\n");
DbgPrint("offsets initialized\n");
driverObject->DriverUnload = &unloadv;
driverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = processIoctlRequest;