aboutsummaryrefslogtreecommitdiffstats
path: root/driver/wintun.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/wintun.c')
-rw-r--r--driver/wintun.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/driver/wintun.c b/driver/wintun.c
index 6366ebd..3e615bb 100644
--- a/driver/wintun.c
+++ b/driver/wintun.c
@@ -838,6 +838,12 @@ cleanup:
return DidClose;
}
+_Must_inspect_result_
+static NTSTATUS TunInitializeDispatchSecurityDescriptor(VOID);
+#ifdef ALLOC_PRAGMA
+# pragma alloc_text(INIT, TunInitializeDispatchSecurityDescriptor)
+#endif
+_Use_decl_annotations_
static NTSTATUS TunInitializeDispatchSecurityDescriptor(VOID)
{
NTSTATUS Status;
@@ -1451,6 +1457,9 @@ TunUnload(PDRIVER_OBJECT DriverObject)
}
DRIVER_INITIALIZE DriverEntry;
+#ifdef ALLOC_PRAGMA
+# pragma alloc_text(INIT, DriverEntry)
+#endif
_Use_decl_annotations_
NTSTATUS
DriverEntry(DRIVER_OBJECT *DriverObject, UNICODE_STRING *RegistryPath)