[FASTFAT]
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 18 Oct 2016 19:28:16 +0000 (19:28 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 18 Oct 2016 19:28:16 +0000 (19:28 +0000)
 - Acquire Paging IO Resource shared when performing paged writes
Greenlighted by Pierre and tests.
CORE-12184 #resolve

svn path=/trunk/; revision=72987

reactos/drivers/filesystems/fastfat/rw.c

index 9a554f1..23e91d0 100644 (file)
@@ -880,7 +880,7 @@ VfatWrite(
         Resource = &Fcb->MainResource;
     }
 
-    if (Fcb->Flags & FCB_IS_PAGE_FILE)
+    if ((Fcb->Flags & FCB_IS_PAGE_FILE) || (IrpContext->Irp->Flags & IRP_PAGING_IO))
     {
         if (!ExAcquireResourceSharedLite(Resource,
                                          BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT)))