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>
This commit is contained in:
parent
ef48951654
commit
7e2002283e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user