diff options
Diffstat (limited to 'storage/class/classpnp/src/dictlib.c')
| -rw-r--r-- | storage/class/classpnp/src/dictlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/class/classpnp/src/dictlib.c b/storage/class/classpnp/src/dictlib.c index 90a67117..73a7e5ca 100644 --- a/storage/class/classpnp/src/dictlib.c +++ b/storage/class/classpnp/src/dictlib.c @@ -78,15 +78,14 @@ AllocateDictionaryEntry( *Entry = NULL; - header = ExAllocatePoolWithTag(NonPagedPoolNx, - Size + sizeof(DICTIONARY_HEADER), - Tag); + header = ExAllocatePoolZero(NonPagedPoolNx, + Size + sizeof(DICTIONARY_HEADER), + Tag); if(header == NULL) { return STATUS_INSUFFICIENT_RESOURCES; } - RtlZeroMemory(header, sizeof(DICTIONARY_HEADER) + Size); header->Key = Key; // |
