Author: cgutman
Date: Wed Nov 16 04:39:49 2011
New Revision: 54395
URL:
http://svn.reactos.org/svn/reactos?rev=54395&view=rev
Log:
[NPFS]
- Execute the failure case while holding the mutex otherwise we crash
Modified:
trunk/reactos/drivers/filesystems/npfs/rw.c
Modified: trunk/reactos/drivers/filesystems/npfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/rw.c [iso-8859-1] Wed Nov 16 04:39:49 2011
@@ -463,6 +463,8 @@
NULL);
DPRINT("Finished waiting (%wZ)! Status: %x\n",
&Ccb->Fcb->PipeName, Status);
+ ExAcquireFastMutex(&Ccb->DataListLock);
+
if ((Status == STATUS_USER_APC) || (Status == STATUS_KERNEL_APC) ||
(Status == STATUS_ALERTED))
{
Status = STATUS_CANCELLED;
@@ -472,7 +474,6 @@
{
ASSERT(FALSE);
}
- ExAcquireFastMutex(&Ccb->DataListLock);
}
else
{