summaryrefslogtreecommitdiff
path: root/storage/class/cdrom/src/zpodd.c
diff options
context:
space:
mode:
authorvisvel <[email protected]>2022-05-11 08:58:53 -0700
committerGitHub <[email protected]>2022-05-11 08:58:53 -0700
commitcf17d8df1a423a7ee616bf8179e8e102fe674a57 (patch)
treeb4e52917e7bd18f77e4eb7d0c2f91226489be6f0 /storage/class/cdrom/src/zpodd.c
parenta423bafcdcf7a58de7d3abd284f6107e4cce329f (diff)
Using ExAllocatePool2 for deferred API change (#719)
Diffstat (limited to 'storage/class/cdrom/src/zpodd.c')
-rw-r--r--storage/class/cdrom/src/zpodd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/storage/class/cdrom/src/zpodd.c b/storage/class/cdrom/src/zpodd.c
index 59434896..9e729143 100644
--- a/storage/class/cdrom/src/zpodd.c
+++ b/storage/class/cdrom/src/zpodd.c
@@ -126,9 +126,9 @@ Return Value:
goto Cleanup;
}
- zpoddInfo = ExAllocatePoolWithTag(NonPagedPoolNx,
- sizeof(ZERO_POWER_ODD_INFO),
- CDROM_TAG_ZERO_POWER_ODD);
+ zpoddInfo = ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ sizeof(ZERO_POWER_ODD_INFO),
+ CDROM_TAG_ZERO_POWER_ODD);
if (zpoddInfo == NULL)
{
@@ -137,8 +137,6 @@ Return Value:
goto Cleanup;
}
- RtlZeroMemory(zpoddInfo, sizeof (ZERO_POWER_ODD_INFO));
-
//
// Check the system for the following prerequisites:
//