Zebediah Figura : hidclass.sys: Allocate IRP return buffers from paged pool.

Alexandre Julliard julliard at winehq.org
Wed Jun 5 16:12:41 CDT 2019


Module: wine
Branch: master
Commit: 1e05e96c47f62b04e4409deccd5ffffef410bbc7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1e05e96c47f62b04e4409deccd5ffffef410bbc7

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Jun  5 09:22:14 2019 -0500

hidclass.sys: Allocate IRP return buffers from paged pool.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hidclass.sys/pnp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c
index 363d82d..ce755e8 100644
--- a/dlls/hidclass.sys/pnp.c
+++ b/dlls/hidclass.sys/pnp.c
@@ -252,7 +252,7 @@ NTSTATUS WINAPI HID_PNP_Dispatch(DEVICE_OBJECT *device, IRP *irp)
         case IRP_MN_QUERY_ID:
         {
             BASE_DEVICE_EXTENSION *ext = device->DeviceExtension;
-            WCHAR *id = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WCHAR)*REGSTR_VAL_MAX_HCID_LEN);
+            WCHAR *id = ExAllocatePool(PagedPool, sizeof(WCHAR) * REGSTR_VAL_MAX_HCID_LEN);
             TRACE("IRP_MN_QUERY_ID[%i]\n", irpsp->Parameters.QueryId.IdType);
             switch (irpsp->Parameters.QueryId.IdType)
             {




More information about the wine-cvs mailing list