Author: hbelusca
Date: Tue Mar 24 00:19:43 2015
New Revision: 66866

URL: http://svn.reactos.org/svn/reactos?rev=66866&view=rev
Log:
[NTOS]: Don't hardcode the size of the ShutDownWaitEntry and use the correct 
pool tags when freeing the entry.

Modified:
    trunk/reactos/ntoskrnl/po/poshtdwn.c

Modified: trunk/reactos/ntoskrnl/po/poshtdwn.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/poshtdwn.c?rev=66866&r1=66865&r2=66866&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/po/poshtdwn.c        [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/poshtdwn.c        [iso-8859-1] Tue Mar 24 
00:19:43 2015
@@ -57,7 +57,7 @@
     PAGED_CODE();
 
     /* Allocate a new shutdown wait entry */
-    ShutDownWaitEntry = ExAllocatePoolWithTag(PagedPool, 8u, 'LSoP');
+    ShutDownWaitEntry = ExAllocatePoolWithTag(PagedPool, 
sizeof(*ShutDownWaitEntry), 'LSoP');
     if (ShutDownWaitEntry == NULL)
     {
         return STATUS_NO_MEMORY;
@@ -84,7 +84,7 @@
     {
         /* We cannot proceed, cleanup and return failure */
         ObDereferenceObject(Thread);
-        ExFreePoolWithTag(ShutDownWaitEntry, 0);
+        ExFreePoolWithTag(ShutDownWaitEntry, 'LSoP');
         Status = STATUS_UNSUCCESSFUL;
     }
 
@@ -138,7 +138,7 @@
         ObfDereferenceObject(ShutDownWaitEntry->Thread);
 
         /* Finally free the entry */
-        ExFreePoolWithTag(ShutDownWaitEntry, 0);
+        ExFreePoolWithTag(ShutDownWaitEntry, 'LSoP');
     }
 }
 


Reply via email to