[ros-diffs] [cwittich] 30827: use ExAllocatePoolWithTag instead of ExAllocatePool

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Nov 28 00:25:57 CET 2007


Author: cwittich
Date: Wed Nov 28 02:25:56 2007
New Revision: 30827

URL: http://svn.reactos.org/svn/reactos?rev=30827&view=rev
Log:
use ExAllocatePoolWithTag instead of ExAllocatePool

Modified:
    trunk/reactos/drivers/filesystems/vfat/fcb.c

Modified: trunk/reactos/drivers/filesystems/vfat/fcb.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/vfat/fcb.c?rev=30827&r1=30826&r2=30827&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/vfat/fcb.c (original)
+++ trunk/reactos/drivers/filesystems/vfat/fcb.c Wed Nov 28 02:25:56 2007
@@ -76,7 +76,7 @@
 	else
 		PathNameBufferLength = 0;
 
-	Fcb->PathNameBuffer = ExAllocatePool(NonPagedPool, PathNameBufferLength);
+	Fcb->PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameBufferLength, TAG_FCB);
 	if (!Fcb->PathNameBuffer)
 	{
 		/* FIXME: what to do if no more memory? */
@@ -454,7 +454,7 @@
 	{
 		return  STATUS_OBJECT_NAME_INVALID;
 	}
-	PathNameBuffer = ExAllocatePool(NonPagedPool, PathNameLength + sizeof(WCHAR));
+	PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameLength + sizeof(WCHAR), TAG_FCB);
 	if (!PathNameBuffer)
 	{
 		return STATUS_INSUFFICIENT_RESOURCES;




More information about the Ros-diffs mailing list