summaryrefslogtreecommitdiff
path: root/avstream/avssamp/avssamp.cpp
diff options
context:
space:
mode:
authorYiwen Jiang <[email protected]>2020-04-06 11:05:29 -0700
committerYiwen Jiang <[email protected]>2020-04-06 11:05:29 -0700
commit60dab78e2549a164e5558b2169a900f24ac41434 (patch)
tree90aaf6c828cdd9f61f3a8079ce6d45fc4d5ccdf2 /avstream/avssamp/avssamp.cpp
parent43e90d07b44b756ce084a31ac3ca154857bb64d8 (diff)
Replaced ExAllocatePoolWithTag with ExAllocatePoolZero in avsstream samples
Diffstat (limited to 'avstream/avssamp/avssamp.cpp')
-rw-r--r--avstream/avssamp/avssamp.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/avstream/avssamp/avssamp.cpp b/avstream/avssamp/avssamp.cpp
index 68741c9e..1ba03089 100644
--- a/avstream/avssamp/avssamp.cpp
+++ b/avstream/avssamp/avssamp.cpp
@@ -38,13 +38,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
@@ -57,13 +51,7 @@ PVOID operator new
ULONG tag
)
{
- PVOID result = ExAllocatePoolWithTag(poolType,iSize,tag);
-
- if (result) {
- RtlZeroMemory(result,iSize);
- }
-
- return result;
+ return ExAllocatePoolZero(poolType,iSize,tag);
}
/*++