mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
[NTFS] NtfsCreateFCB(): Check allocation result (#4795)
This commit is contained in:
parent
a09e903398
commit
5efb6e3d97
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ NtfsCreateFCB(PCWSTR FileName,
|
|||
ASSERT(Vcb->Identifier.Type == NTFS_TYPE_VCB);
|
||||
|
||||
Fcb = ExAllocateFromNPagedLookasideList(&NtfsGlobalData->FcbLookasideList);
|
||||
if (Fcb == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
RtlZeroMemory(Fcb, sizeof(NTFS_FCB));
|
||||
|
||||
Fcb->Identifier.Type = NTFS_TYPE_FCB;
|
||||
|
|
Loading…
Reference in a new issue