From: Sir Richard Date: Tue, 29 Jun 2010 19:23:16 +0000 (+0000) Subject: [RTL]: RangeList APIs should not be allocating pool with a tag of 0, since this makes... X-Git-Tag: backups/Ash_Shell@48412~1^2~355 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ec783fe1dfa5e0ee0e15d2610cecfb488093f3f2 [RTL]: RangeList APIs should not be allocating pool with a tag of 0, since this makes the checked kernel ASSERT. Good thing nobody used these APIs (I wonder if they even work), but eVb's PCI driver now does. svn path=/trunk/; revision=47907 --- diff --git a/reactos/lib/rtl/rangelist.c b/reactos/lib/rtl/rangelist.c index 4730bbb8392..c6980fd11b6 100644 --- a/reactos/lib/rtl/rangelist.c +++ b/reactos/lib/rtl/rangelist.c @@ -65,7 +65,7 @@ RtlAddRange (IN OUT PRTL_RANGE_LIST RangeList, return STATUS_INVALID_PARAMETER; /* Create new range entry */ - RangeEntry = RtlpAllocateMemory(sizeof(RTL_RANGE_ENTRY), 0); + RangeEntry = RtlpAllocateMemory(sizeof(RTL_RANGE_ENTRY), 'elRR'); if (RangeEntry == NULL) return STATUS_INSUFFICIENT_RESOURCES; @@ -157,7 +157,7 @@ RtlCopyRangeList (OUT PRTL_RANGE_LIST CopyRangeList, { Current = CONTAINING_RECORD (Entry, RTL_RANGE_ENTRY, Entry); - NewEntry = RtlpAllocateMemory(sizeof(RTL_RANGE_ENTRY), 0); + NewEntry = RtlpAllocateMemory(sizeof(RTL_RANGE_ENTRY), 'elRR'); if (NewEntry == NULL) return STATUS_INSUFFICIENT_RESOURCES;