mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
check for failure of vfatAttachFCBToFileObject() during file creation
svn path=/trunk/; revision=17328
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user