Added a missing call to VfatCloseFile.

svn path=/trunk/; revision=3918
This commit is contained in:
Hartmut Birr 2003-01-02 16:04:31 +00:00
parent b3f5d3a6f8
commit 0b2f407fd4

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: create.c,v 1.49 2002/12/03 01:14:49 hbirr Exp $ /* $Id: create.c,v 1.50 2003/01/02 16:04:31 hbirr Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: services/fs/vfat/create.c * FILE: services/fs/vfat/create.c
@ -679,6 +679,7 @@ VfatCreateFile (PDEVICE_OBJECT DeviceObject, PIRP Irp)
if (RequestedDisposition == FILE_CREATE) if (RequestedDisposition == FILE_CREATE)
{ {
Irp->IoStatus.Information = FILE_EXISTS; Irp->IoStatus.Information = FILE_EXISTS;
VfatCloseFile (DeviceExt, FileObject);
return(STATUS_OBJECT_NAME_COLLISION); return(STATUS_OBJECT_NAME_COLLISION);
} }