Author: tfaber
Date: Fri Sep 13 12:41:44 2013
New Revision: 60077
URL:
http://svn.reactos.org/svn/reactos?rev=60077&view=rev
Log:
[NPFS_NEW]
- Fix another DataQueue->QueueState condition
- Use IsListEmpty for readability
Modified:
trunk/reactos/drivers/filesystems/npfs_new/datasup.c
Modified: trunk/reactos/drivers/filesystems/npfs_new/datasup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/datasup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/datasup.c [iso-8859-1] Fri Sep 13 12:41:44
2013
@@ -135,7 +135,7 @@
DataQueue->QuotaUsed -= QueueEntry->QuotaInEntry;
- if (DataQueue->Queue.Flink == &DataQueue->Queue)
+ if (IsListEmpty(&DataQueue->Queue))
{
DataQueue->QueueState = Empty;
HasWrites = 0;
@@ -239,7 +239,9 @@
ClientSecurityContext = DataEntry->ClientSecurityContext;
CompleteWrites = 1;
- if (!DataQueue->QueueState != WriteEntries || DataQueue->QuotaUsed <
DataQueue->Quota || !DataEntry->QuotaInEntry)
+ if (DataQueue->QueueState != WriteEntries ||
+ DataQueue->QuotaUsed < DataQueue->Quota ||
+ !DataEntry->QuotaInEntry)
{
CompleteWrites = 0;
}
@@ -248,7 +250,7 @@
DataQueue->QuotaUsed -= DataEntry->QuotaInEntry;
--DataQueue->EntriesInQueue;
- if (DataQueue->Queue.Flink == &DataQueue->Queue)
+ if (IsListEmpty(&DataQueue->Queue))
{
DataQueue->QueueState = Empty;
ASSERT(DataQueue->BytesInQueue == 0);
@@ -288,7 +290,7 @@
NpAddDataQueueEntry(IN ULONG NamedPipeEnd,
IN PNP_CCB Ccb,
IN PNP_DATA_QUEUE DataQueue,
- IN ULONG Who,
+ IN ULONG Who,
IN ULONG Type,
IN ULONG DataSize,
IN PIRP Irp,
@@ -433,7 +435,7 @@
{
ASSERT(DataQueue->BytesInQueue == 0);
ASSERT(DataQueue->EntriesInQueue == 0);
- ASSERT(IsListEmpty (&DataQueue->Queue));
+ ASSERT(IsListEmpty(&DataQueue->Queue));
}
else
{