mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 06:45:24 +00:00
[fastfat_new]
- Don't leak VCB lock, prevents hang when trying to open another file. svn path=/trunk/; revision=43257
This commit is contained in:
parent
11361e2730
commit
58df56f2c5
1 changed files with 6 additions and 1 deletions
|
@ -527,6 +527,9 @@ FatiCreate(IN PFAT_IRP_CONTEXT IrpContext,
|
|||
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 @@ FatiCreate(IN PFAT_IRP_CONTEXT IrpContext,
|
|||
Irp->IoStatus.Information = Iosb.Information;
|
||||
}
|
||||
|
||||
/* Unlock VCB */
|
||||
FatReleaseVcb(IrpContext, Vcb);
|
||||
|
||||
/* Complete the request */
|
||||
FatCompleteRequest(IrpContext, Irp, Iosb.Status);
|
||||
|
||||
|
@ -564,7 +570,6 @@ FatCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
{
|
||||
PFAT_IRP_CONTEXT IrpContext;
|
||||
NTSTATUS Status;
|
||||
//PVOLUME_DEVICE_OBJECT VolumeDO = (PVOLUME_DEVICE_OBJECT)DeviceObject;
|
||||
|
||||
DPRINT1("FatCreate()\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue