Author: fireball Date: Fri Oct 2 19:07:37 2009 New Revision: 43257 URL: http://svn.reactos.org/svn/reactos?rev=43257&view=rev Log: [fastfat_new] - Don't leak VCB lock, prevents hang when trying to open another file.
Modified: trunk/reactos/drivers/filesystems/fastfat_new/create.c Modified: trunk/reactos/drivers/filesystems/fastfat_new/create.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat_new/create.c?rev=43257&r1=43256&r2=43257&view=diff ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat_new/create.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat_new/create.c [iso-8859-1] Fri Oct 2 19:07:37 2009 @@ -527,6 +527,9 @@ since we're opening files here */ if (EndBackslash) { + /* Unlock VCB */ + FatReleaseVcb(IrpContext, Vcb); + /* Complete the request */ Iosb.Status = STATUS_OBJECT_NAME_INVALID; FatCompleteRequest(IrpContext, Irp, Iosb.Status); @@ -552,6 +555,9 @@ Irp->IoStatus.Information = Iosb.Information; } + /* Unlock VCB */ + FatReleaseVcb(IrpContext, Vcb); + /* Complete the request */ FatCompleteRequest(IrpContext, Irp, Iosb.Status); @@ -564,7 +570,6 @@ { PFAT_IRP_CONTEXT IrpContext; NTSTATUS Status; - //PVOLUME_DEVICE_OBJECT VolumeDO = (PVOLUME_DEVICE_OBJECT)DeviceObject; DPRINT1("FatCreate()\n");