check for failure of vfatAttachFCBToFileObject() during file creation

svn path=/trunk/; revision=17328
This commit is contained in:
Royce Mitchell III 2005-08-12 16:49:04 +00:00
parent 25afeebf54
commit 32ca0b0274

View file

@ -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;