[CMAKE]
[reactos.git] / drivers / usb / usbehci / common.c
index 79ecbad..22740b3 100644 (file)
@@ -4,15 +4,13 @@
  * FILE:        drivers/usb/usbehci/common.c
  * PURPOSE:     Common operations in FDO/PDO.
  * PROGRAMMERS:
- *              Michael Martin
+ *              Michael Martin (mjmartin@reactos.org)
  */
 
 #define INITGUID
 #include "usbehci.h"
 #include <wdmguid.h>
 #include <stdio.h>
-#define NDEBUG
-#include <debug.h>
 
 /* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/
 
@@ -137,7 +135,7 @@ DuplicateUnicodeString(ULONG Flags, PCUNICODE_STRING SourceString, PUNICODE_STRI
         if (Flags & RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE)
             DestMaxLength += sizeof(UNICODE_NULL);
 
-        DestinationString->Buffer = ExAllocatePool(PagedPool, DestMaxLength);
+        DestinationString->Buffer = ExAllocatePoolWithTag(NonPagedPool, DestMaxLength, USB_POOL_TAG);
         if (DestinationString->Buffer == NULL)
             return STATUS_NO_MEMORY;