diff options
author | Simon Rozman <simon@rozman.si> | 2021-09-13 08:58:30 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-09-13 08:58:30 +0200 |
commit | 7e2002283efaa1d1355123b3dfaffc51c205fc1f (patch) | |
tree | dc04f32c036ee701b73487951edf850d99c2f0a5 /driver | |
parent | example: disable dad for faster startup (diff) | |
download | wintun-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>
Diffstat (limited to '')
-rw-r--r-- | driver/wintun.c | 2 |
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; } |