[FASTFAT] Finally drop the TAG_VFAT allocation tag

This commit is contained in:
Pierre Schweitzer 2018-08-21 08:36:51 +02:00
parent 6c75215bb3
commit 4bb1baa860
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
7 changed files with 35 additions and 32 deletions

View file

@ -122,7 +122,7 @@ FindFile(
DPRINT("FindFile: Path %wZ\n",&Parent->PathNameU);
PathNameBufferLength = LONGNAME_MAX_LENGTH * sizeof(WCHAR);
PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameBufferLength + sizeof(WCHAR), TAG_VFAT);
PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameBufferLength + sizeof(WCHAR), TAG_NAME);
if (!PathNameBuffer)
{
return STATUS_INSUFFICIENT_RESOURCES;
@ -173,7 +173,7 @@ FindFile(
Status = STATUS_UNSUCCESSFUL;
}
vfatReleaseFCB(DeviceExt, rcFcb);
ExFreePool(PathNameBuffer);
ExFreePoolWithTag(PathNameBuffer, TAG_NAME);
return Status;
}
}
@ -183,7 +183,7 @@ FindFile(
Status = RtlUpcaseUnicodeString(&FileToFindUpcase, FileToFindU, TRUE);
if (!NT_SUCCESS(Status))
{
ExFreePool(PathNameBuffer);
ExFreePoolWithTag(PathNameBuffer, TAG_NAME);
return Status;
}
@ -251,7 +251,7 @@ FindFile(
CcUnpinData(Context);
}
RtlFreeUnicodeString(&FileToFindUpcase);
ExFreePool(PathNameBuffer);
ExFreePoolWithTag(PathNameBuffer, TAG_NAME);
return STATUS_SUCCESS;
}
DirContext->DirIndex++;
@ -263,7 +263,7 @@ FindFile(
}
RtlFreeUnicodeString(&FileToFindUpcase);
ExFreePool(PathNameBuffer);
ExFreePoolWithTag(PathNameBuffer, TAG_NAME);
return Status;
}