[FASTFAT] Fail if allocating the stream FO fails.

This commit is contained in:
Pierre Schweitzer 2018-05-20 13:53:11 +02:00
parent b250eb5f3e
commit a10f6c7a0c
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -47,6 +47,11 @@ vfatFCBInitializeCacheFromVolume(
}
fileObject = IoCreateStreamFileObject (NULL, vcb->StorageDevice);
if (fileObject == NULL)
{
status = STATUS_INSUFFICIENT_RESOURCES;
goto Quit;
}
#ifdef KDBG
if (DebugFile.Buffer != NULL && FsRtlIsNameInExpression(&DebugFile, &fcb->LongNameU, FALSE, NULL))