aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2021-09-13 08:58:30 +0200
committerSimon Rozman <simon@rozman.si>2021-09-13 08:58:30 +0200
commit7e2002283efaa1d1355123b3dfaffc51c205fc1f (patch)
treedc04f32c036ee701b73487951edf850d99c2f0a5
parentexample: disable dad for faster startup (diff)
downloadwintun-7e2002283efaa1d1355123b3dfaffc51c205fc1f.tar.xz
wintun-7e2002283efaa1d1355123b3dfaffc51c205fc1f.zip
driver: Replace depreciated ExAllocatePoolWithTag
CodeQL with Windows-Driver-Developer-Supplemental-Tools suggests the ExAllocatePoolWithTag() should no longer be used. The Static Tools Logo Test in HLK spots this in the DVL log and fails. Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--driver/wintun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/wintun.c b/driver/wintun.c
index ae42552..79952e4 100644
--- a/driver/wintun.c
+++ b/driver/wintun.c
@@ -804,7 +804,7 @@ TunForceHandlesClosed(_Inout_ DEVICE_OBJECT *DeviceObject)
{
if (HandleTable)
ExFreePoolWithTag(HandleTable, TUN_MEMORY_TAG);
- HandleTable = ExAllocatePoolWithTag(PagedPool, RequestedSize, TUN_MEMORY_TAG);
+ HandleTable = ExAllocatePoolUninitialized(PagedPool, RequestedSize, TUN_MEMORY_TAG);
if (!HandleTable)
return FALSE;
}