mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
check for failure of vfatAttachFCBToFileObject() during file creation
svn path=/trunk/; revision=17328
This commit is contained in:
parent
25afeebf54
commit
32ca0b0274
1 changed files with 6 additions and 1 deletions
|
@ -564,7 +564,12 @@ VfatCreateFile (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
vfatReleaseFCB (DeviceExt, ParentFcb);
|
||||
if (NT_SUCCESS (Status))
|
||||
{
|
||||
vfatAttachFCBToFileObject (DeviceExt, pFcb, FileObject);
|
||||
Status = vfatAttachFCBToFileObject (DeviceExt, pFcb, FileObject);
|
||||
if ( !NT_SUCCESS(Status) )
|
||||
{
|
||||
vfatReleaseFCB (DeviceExt, pFcb);
|
||||
return Status;
|
||||
}
|
||||
|
||||
Irp->IoStatus.Information = FILE_CREATED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue