diff options
| author | NateD-MSFT <[email protected]> | 2021-06-02 15:35:17 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-02 15:35:17 -0700 |
| commit | 68929f177a2a0ad718b0bb5c2d7fd210e6076c7b (patch) | |
| tree | 4b0a48044ebc997336c4782ac2eb263515362d52 | |
| parent | 10037b5911f1cfb124ae8518ac8fbf5ea676551e (diff) | |
| parent | e3b7ea5642567fd2cd0d4228adcb32f55be47989 (diff) | |
Merge pull request #629 from NateD-MSFT/main
Remove deprecated API usage in DV-FailDriver-WDM sample.
| -rw-r--r-- | tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c | 10 | ||||
| -rw-r--r-- | tools/dv/samples/DV-FailDriver-WDM/wmi.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c index f8c545d2..f90a1a86 100644 --- a/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c +++ b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c @@ -828,7 +828,7 @@ Return Value: // Allocate memory for the deviceinfo // - list = ExAllocatePoolWithTag(PagedPool,sizeof(DEVICE_INFO),DRIVER_TAG); + list = ExAllocatePool2(POOL_FLAG_PAGED, sizeof(DEVICE_INFO), DRIVER_TAG); if (list == NULL) { goto Error; @@ -841,10 +841,10 @@ Return Value: list->SymbolicLink.MaximumLength = symbolicLinkName->Length + sizeof(UNICODE_NULL); list->SymbolicLink.Length = symbolicLinkName->Length; - list->SymbolicLink.Buffer = ExAllocatePoolWithTag ( - PagedPool, - list->SymbolicLink.MaximumLength, - DRIVER_TAG); + list->SymbolicLink.Buffer = ExAllocatePool2( + POOL_FLAG_PAGED, + list->SymbolicLink.MaximumLength, + DRIVER_TAG); if (list->SymbolicLink.Buffer == NULL) { goto Error; diff --git a/tools/dv/samples/DV-FailDriver-WDM/wmi.c b/tools/dv/samples/DV-FailDriver-WDM/wmi.c index ee856d59..098bd8d1 100644 --- a/tools/dv/samples/DV-FailDriver-WDM/wmi.c +++ b/tools/dv/samples/DV-FailDriver-WDM/wmi.c @@ -191,8 +191,8 @@ Return Value: } } - valueInfo = ExAllocatePoolWithTag (NonPagedPool, resultLength, - DRIVER_TAG); + valueInfo = ExAllocatePool2(POOL_FLAG_NON_PAGED, resultLength, + DRIVER_TAG); if (NULL == valueInfo) { status = STATUS_INSUFFICIENT_RESOURCES; goto Error; |
