Author: mjmartin
Date: Tue Apr 5 11:42:38 2011
New Revision: 51258
URL:
http://svn.reactos.org/svn/reactos?rev=51258&view=rev
Log:
[NTOS/MM]
- Update PoolTag used with ExFreePooWithTag to match changes made in 46987 by richard.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] Tue Apr 5 11:42:38 2011
@@ -1059,7 +1059,7 @@
{
/* It's not, it's importing stuff it shouldn't be! */
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePool(LoadedImports);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
return STATUS_PROCEDURE_NOT_FOUND;
}
@@ -1073,7 +1073,7 @@
{
/* This is not kernel code */
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePool(LoadedImports);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
return STATUS_PROCEDURE_NOT_FOUND;
}
@@ -1098,7 +1098,7 @@
{
/* Failed */
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
return Status;
}
@@ -1219,7 +1219,7 @@
/* Cleanup and return */
RtlFreeUnicodeString(&NameString);
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
return Status;
}
@@ -1252,7 +1252,7 @@
{
/* Cleanup and return */
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
DPRINT1("Warning: Driver failed to load, %S not found\n",
*MissingDriver);
return STATUS_DRIVER_ENTRYPOINT_NOT_FOUND;
}
@@ -1282,7 +1282,7 @@
{
/* Cleanup and return */
MiDereferenceImports(LoadedImports);
- if (LoadedImports) ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ if (LoadedImports) ExFreePoolWithTag(LoadedImports, 'TDmM');
return Status;
}
@@ -1315,13 +1315,13 @@
if (!ImportCount)
{
/* Free the list and set it to no imports */
- ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ ExFreePoolWithTag(LoadedImports, 'TDmM');
LoadedImports = MM_SYSLDR_NO_IMPORTS;
}
else if (ImportCount == 1)
{
/* Just one entry, we can free the table and only use our entry */
- ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ ExFreePoolWithTag(LoadedImports, 'TDmM');
LoadedImports = (PLOAD_IMPORTS)ImportEntry;
}
else if (ImportCount != LoadedImports->Count)
@@ -1349,7 +1349,7 @@
}
/* Free the old copy */
- ExFreePoolWithTag(LoadedImports, TAG_LDR_WSTR);
+ ExFreePoolWithTag(LoadedImports, 'TDmM');
LoadedImports = NewImports;
}
}
@@ -3004,7 +3004,7 @@
/* if (NamePrefix) ExFreePool(PrefixName.Buffer); */
/* Free the name buffer and return status */
- ExFreePoolWithTag(Buffer, TAG_LDR_WSTR);
+ ExFreePoolWithTag(Buffer, 'nLmM');
return Status;
}