mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
use ExAllocatePoolWithTag instead of ExAllocatePool
svn path=/trunk/; revision=30827
This commit is contained in:
parent
07f58bd561
commit
a141ea751d
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ vfatInitFcb(PVFATFCB Fcb, PUNICODE_STRING NameU)
|
||||||
else
|
else
|
||||||
PathNameBufferLength = 0;
|
PathNameBufferLength = 0;
|
||||||
|
|
||||||
Fcb->PathNameBuffer = ExAllocatePool(NonPagedPool, PathNameBufferLength);
|
Fcb->PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameBufferLength, TAG_FCB);
|
||||||
if (!Fcb->PathNameBuffer)
|
if (!Fcb->PathNameBuffer)
|
||||||
{
|
{
|
||||||
/* FIXME: what to do if no more memory? */
|
/* FIXME: what to do if no more memory? */
|
||||||
|
@ -454,7 +454,7 @@ vfatMakeFCBFromDirEntry(
|
||||||
{
|
{
|
||||||
return STATUS_OBJECT_NAME_INVALID;
|
return STATUS_OBJECT_NAME_INVALID;
|
||||||
}
|
}
|
||||||
PathNameBuffer = ExAllocatePool(NonPagedPool, PathNameLength + sizeof(WCHAR));
|
PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameLength + sizeof(WCHAR), TAG_FCB);
|
||||||
if (!PathNameBuffer)
|
if (!PathNameBuffer)
|
||||||
{
|
{
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue