[ros-diffs] [sir_richard] 47907: [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.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Tue Jun 29 19:23:18 UTC 2010


Author: sir_richard
Date: Tue Jun 29 19:23:16 2010
New Revision: 47907

URL: http://svn.reactos.org/svn/reactos?rev=47907&view=rev
Log:
[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.

Modified:
    trunk/reactos/lib/rtl/rangelist.c

Modified: trunk/reactos/lib/rtl/rangelist.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rangelist.c?rev=47907&r1=47906&r2=47907&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] Tue Jun 29 19:23:16 2010
@@ -65,7 +65,7 @@
     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 @@
     {
       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;
 




More information about the Ros-diffs mailing list