diff options
| author | Joel Corley <[email protected]> | 2020-04-07 00:43:16 -0700 |
|---|---|---|
| committer | Joel Corley <[email protected]> | 2020-04-07 00:43:16 -0700 |
| commit | 27c8560ba860165db5a173b37591271397d20bb7 (patch) | |
| tree | 5eb91440b4fcd8d199a162c053f171a925b8eced /avstream/avshws/device.cpp | |
| parent | 6568238719a3fe6d317e1d4a13131f5d2ca0234b (diff) | |
| parent | 60dab78e2549a164e5558b2169a900f24ac41434 (diff) | |
Merge branch 'UpdateVibraniumAvstream' of https://github.com/JoelCorley/Windows-driver-samples into UpdateVibraniumAvstream
Diffstat (limited to 'avstream/avshws/device.cpp')
| -rw-r--r-- | avstream/avshws/device.cpp | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/avstream/avshws/device.cpp b/avstream/avshws/device.cpp index 44fc9704..b0a7fb23 100644 --- a/avstream/avshws/device.cpp +++ b/avstream/avshws/device.cpp @@ -31,13 +31,7 @@ PVOID operator new POOL_TYPE poolType ) { - PVOID result = ExAllocatePoolWithTag(poolType,iSize,'wNCK'); - - if (result) { - RtlZeroMemory(result,iSize); - } - - return result; + return ExAllocatePoolZero(poolType,iSize,'wNCK'); } PVOID operator new @@ -50,13 +44,7 @@ PVOID operator new ULONG tag ) { - PVOID result = ExAllocatePoolWithTag(poolType,iSize,tag); - - if (result) { - RtlZeroMemory(result,iSize); - } - - return result; + return ExAllocatePoolZero(poolType,iSize,tag); } PVOID @@ -69,14 +57,7 @@ operator new[]( ULONG tag ) { - PVOID result = ExAllocatePoolWithTag(poolType, iSize, tag); - - if (result) - { - RtlZeroMemory(result, iSize); - } - - return result; + return ExAllocatePoolWZero(poolType, iSize, tag); } /*++ |
