ActiveDeviceId and ActiveInstanceId can be used at DISPATCH_LEVEL, and
therefore cannot use PagedPool. When these values are returned via IRPs,
the value is copied into a PagedPool buffer for the IRP to use.
Signed-off-by: Owen Smith <owen.smith@citrix.com>
goto fail1;
Length = Ansi[0].Length + sizeof (CHAR);
- *Value = __AllocatePoolWithTag(PagedPool, Length, 'TLIF');
+ *Value = __AllocatePoolWithTag(NonPagedPool, Length, 'TLIF');
status = STATUS_NO_MEMORY;
if (*Value == NULL)