From 91e620db1a56ab16f4831d82e341c7491791a4c9 Mon Sep 17 00:00:00 2001 From: gmh <13917777+gmh5225@users.noreply.github.com> Date: Fri, 7 Jun 2024 03:50:33 +0800 Subject: [PATCH] Update libwindrv.cpp --- src/libwindrv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libwindrv.cpp b/src/libwindrv.cpp index 0d304fb..c54361b 100644 --- a/src/libwindrv.cpp +++ b/src/libwindrv.cpp @@ -42,6 +42,7 @@ DriverUnload(__in DRIVER_OBJECT *DriverObject) // TODO } +#pragma alloc_text(INIT, DriverEntry) EXTERN_C NTSTATUS DriverEntry(__in DRIVER_OBJECT *DriverObject, __in UNICODE_STRING *RegistryPath)