diff --git a/drivers/filesystems/ntfs/fcb.c b/drivers/filesystems/ntfs/fcb.c index 7badedba171..e63b73ee5f0 100644 --- a/drivers/filesystems/ntfs/fcb.c +++ b/drivers/filesystems/ntfs/fcb.c @@ -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;