[RTL/DPH]
authorAleksey Bragin <aleksey@reactos.org>
Fri, 25 Feb 2011 14:13:10 +0000 (14:13 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Fri, 25 Feb 2011 14:13:10 +0000 (14:13 +0000)
- Fix wrong pointer comparison in RtlpDebugPageHeapFree(). Should check for NULL pointer freeing, instead of checking for NULL heap pointer.

svn path=/trunk/; revision=50898

reactos/lib/rtl/heappage.c

index 19b536e..a4a6307 100644 (file)
@@ -1813,7 +1813,7 @@ RtlpPageHeapFree(HANDLE HeapPtr,
     PDPH_BLOCK_INFORMATION Info;
 
     /* Check for a NULL pointer freeing */
-    if (!HeapPtr)
+    if (!Ptr)
     {
         if (RtlpDphBreakOptions & DPH_BREAK_ON_NULL_FREE)
         {