aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2021-10-17 13:11:42 +0200
committerSimon Rozman <simon@rozman.si>2021-10-17 13:11:42 +0200
commit4c9511554d9c0aec52c76bd64198de45ce524cc9 (patch)
tree94524ae5b17db8b22696540443480e696ca39262
parentversion: bump (diff)
downloadwintun-4c9511554d9c0aec52c76bd64198de45ce524cc9.tar.xz
wintun-4c9511554d9c0aec52c76bd64198de45ce524cc9.zip
driver: address Code Analysis warnings
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--driver/wintun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/wintun.c b/driver/wintun.c
index 1969854..ec753a4 100644
--- a/driver/wintun.c
+++ b/driver/wintun.c
@@ -873,7 +873,7 @@ TunDispatchClose(DEVICE_OBJECT *DeviceObject, IRP *Irp)
}
_Dispatch_type_(IRP_MJ_PNP)
-static DRIVER_DISPATCH_PAGED DispatchPnp;
+static DRIVER_DISPATCH_PAGED TunDispatchPnp;
_Use_decl_annotations_
static NTSTATUS
TunDispatchPnp(DEVICE_OBJECT *DeviceObject, IRP *Irp)
@@ -882,6 +882,7 @@ TunDispatchPnp(DEVICE_OBJECT *DeviceObject, IRP *Irp)
if (Stack->MinorFunction != IRP_MN_QUERY_REMOVE_DEVICE && Stack->MinorFunction != IRP_MN_SURPRISE_REMOVAL)
goto ndisDispatch;
+#pragma warning(suppress : 28175)
TUN_CTX *Ctx = DeviceObject->Reserved;
if (!Ctx)
goto ndisDispatch;