diff options
| author | Adonais Romero González <[email protected]> | 2022-06-01 18:04:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-01 18:04:32 -0700 |
| commit | 407a607d50801cd4e49bd383996c63cfc232b9c0 (patch) | |
| tree | 5e6d66be64cbe8a75f91f3b7bb28e8785d452427 | |
| parent | 03cb8dc6e2caa5088fd3c7f7ca7e3c9b3489230d (diff) | |
[general\obcallback] Replace ExAllocatePoolWithTag -> ExAllocatePool2 (#736)
Replacing deprecated ExAllocatePoolWithTag to ExAllocatePool2. Builds with Windows 11 EWDK with Visual Studio Build Tools 17.1.5.
| -rw-r--r-- | general/obcallback/driver/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/general/obcallback/driver/util.c b/general/obcallback/driver/util.c index c00e96a3..a4cea356 100644 --- a/general/obcallback/driver/util.c +++ b/general/obcallback/driver/util.c @@ -33,8 +33,8 @@ void TdSetCallContext ( { PTD_CALL_CONTEXT CallContext; - CallContext = (PTD_CALL_CONTEXT) ExAllocatePoolWithTag ( - PagedPool, sizeof(TD_CALL_CONTEXT), TD_CALL_CONTEXT_TAG + CallContext = (PTD_CALL_CONTEXT) ExAllocatePool2 ( + POOL_FLAG_PAGED, sizeof(TD_CALL_CONTEXT), TD_CALL_CONTEXT_TAG ); if (CallContext == NULL) @@ -42,8 +42,6 @@ void TdSetCallContext ( return; } - RtlZeroMemory (CallContext, sizeof(TD_CALL_CONTEXT)); - CallContext->CallbackRegistration = CallbackRegistration; CallContext->Operation = PreInfo->Operation; CallContext->Object = PreInfo->Object; |
