mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FASTFAT] Fail if allocating the stream FO fails.
This commit is contained in:
parent
b250eb5f3e
commit
a10f6c7a0c
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue