Author: tfaber
Date: Fri May 1 19:40:04 2015
New Revision: 67503
URL:
http://svn.reactos.org/svn/reactos?rev=67503&view=rev
Log:
[NPFS]
- Correctly check for write quota in NpCommonWrite. Should fix test regressions after
enabling fast I/O.
Modified:
trunk/reactos/drivers/filesystems/npfs/write.c
Modified: trunk/reactos/drivers/filesystems/npfs/write.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/w…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/write.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/write.c [iso-8859-1] Fri May 1 19:40:04 2015
@@ -104,10 +104,10 @@
EventBuffer = NonPagedCcb->EventBuffer[NamedPipeEnd];
if ((WriteQueue->QueueState == ReadEntries &&
- WriteQueue->BytesInQueue < DataSize &&
- WriteQueue->Quota < DataSize - WriteQueue->BytesInQueue) ||
- (WriteQueue->QueueState == ReadEntries &&
- WriteQueue->Quota - WriteQueue->QuotaUsed < DataSize))
+ WriteQueue->BytesInQueue < DataSize &&
+ WriteQueue->Quota < DataSize - WriteQueue->BytesInQueue) ||
+ (WriteQueue->QueueState != ReadEntries &&
+ WriteQueue->Quota - WriteQueue->QuotaUsed < DataSize))
{
if (Ccb->Fcb->NamedPipeType == FILE_PIPE_MESSAGE_TYPE &&
Ccb->CompletionMode[NamedPipeEnd] == FILE_PIPE_COMPLETE_OPERATION)