diff --git a/cxplat/cxplat_test/cxplat_processor_test.cpp b/cxplat/cxplat_test/cxplat_processor_test.cpp index 18be68e1..048643aa 100644 --- a/cxplat/cxplat_test/cxplat_processor_test.cpp +++ b/cxplat/cxplat_test/cxplat_processor_test.cpp @@ -44,7 +44,7 @@ TEST_CASE("spin_lock", "[processor]") { REQUIRE(cxplat_initialize() == CXPLAT_STATUS_SUCCESS); cxplat_irql_t irql; - cxplat_spin_lock_t lock; + cxplat_spin_lock_t lock{}; REQUIRE(cxplat_get_current_irql() == PASSIVE_LEVEL); irql = cxplat_acquire_spin_lock(&lock); REQUIRE(cxplat_get_current_irql() == DISPATCH_LEVEL); diff --git a/src/ex.cpp b/src/ex.cpp index 1c24abe5..f8ae1cc3 100644 --- a/src/ex.cpp +++ b/src/ex.cpp @@ -50,7 +50,7 @@ ExAllocateCacheAwareRundownProtection( _In_ __drv_strictTypeMatch(__drv_typeExpr) POOL_TYPE PoolType, unsigned long PoolTag) { EX_RUNDOWN_REF_CACHE_AWARE* rundown_reference = - (EX_RUNDOWN_REF_CACHE_AWARE*)ExAllocatePoolWithTag(PoolType, sizeof(EX_RUNDOWN_REF_CACHE_AWARE), PoolTag); + (EX_RUNDOWN_REF_CACHE_AWARE*)ExAllocatePoolUninitialized(PoolType, sizeof(EX_RUNDOWN_REF_CACHE_AWARE), PoolTag); if (rundown_reference != nullptr) { cxplat_initialize_rundown_protection(rundown_reference);