[FASTFAT]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 29 Nov 2014 20:09:44 +0000 (20:09 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 29 Nov 2014 20:09:44 +0000 (20:09 +0000)
If you decrease handles count on cleanup, don't forget to increase it on create.

This fixes sharing violation on ReactOS installation with IopParseDevice hack disabled.

svn path=/trunk/; revision=65525

reactos/drivers/filesystems/fastfat/create.c

index 05069df..0859762 100644 (file)
@@ -526,6 +526,7 @@ VfatCreateFile(
 
         vfatAttachFCBToFileObject(DeviceExt, pFcb, FileObject);
         DeviceExt->OpenHandleCount++;
 
         vfatAttachFCBToFileObject(DeviceExt, pFcb, FileObject);
         DeviceExt->OpenHandleCount++;
+        pFcb->OpenHandleCount++;
 
         Irp->IoStatus.Information = FILE_OPENED;
         return STATUS_SUCCESS;
 
         Irp->IoStatus.Information = FILE_OPENED;
         return STATUS_SUCCESS;