From 28e480b966f7e90d1b915e1f8ea0851c8c02ac64 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 10 Nov 2008 09:57:42 +0000 Subject: [PATCH] - Revert 25073 (vfatfs part). CcCopyRead is guaranteed (see WDK) to succeed if Wait parameter is TRUE, and the only case of failure is when Wait is FALSE meaning there is a need in additional processing time, hence returning of STATUS_PENDING. This fixes the "unable to read system hive" problem when booting Windows 2003 with this driver. See issue #1855 for more details. svn path=/trunk/; revision=37272 --- reactos/drivers/filesystems/fastfat/rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/fastfat/rw.c b/reactos/drivers/filesystems/fastfat/rw.c index 76518016118..519ef128e32 100644 --- a/reactos/drivers/filesystems/fastfat/rw.c +++ b/reactos/drivers/filesystems/fastfat/rw.c @@ -678,7 +678,7 @@ VfatRead(PVFAT_IRP_CONTEXT IrpContext) (BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT), Buffer, &IrpContext->Irp->IoStatus)) { - Status = IrpContext->Irp->IoStatus.Status;//STATUS_PENDING; + Status = STATUS_PENDING; goto ByeBye; } if (!NT_SUCCESS(IrpContext->Irp->IoStatus.Status))