Author: akhaldi
Date: Fri May 14 20:40:23 2010
New Revision: 47201
URL:
http://svn.reactos.org/svn/reactos?rev=47201&view=rev
Log:
[NTOSKRNL]
- Fix ExInterlockedPopEntryList and ExInterlockedPushEntryList, they were not working at
all. Brought to you by Timo ;)
Modified:
branches/header-work/ntoskrnl/ex/fastinterlck.c
Modified: branches/header-work/ntoskrnl/ex/fastinterlck.c
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/ntoskrnl/ex/fastint…
==============================================================================
--- branches/header-work/ntoskrnl/ex/fastinterlck.c [iso-8859-1] (original)
+++ branches/header-work/ntoskrnl/ex/fastinterlck.c [iso-8859-1] Fri May 14 20:40:23 2010
@@ -255,7 +255,7 @@
KIRQL OldIrql;
PSINGLE_LIST_ENTRY OldHead = NULL;
KeAcquireSpinLock(Lock, &OldIrql);
- if (!ListHead->Next) OldHead = PopEntryList(ListHead);
+ OldHead = PopEntryList(ListHead);
KeReleaseSpinLock(Lock, OldIrql);
return OldHead;
}
@@ -269,7 +269,8 @@
KIRQL OldIrql;
PSINGLE_LIST_ENTRY OldHead = NULL;
KeAcquireSpinLock(Lock, &OldIrql);
- if (!ListHead->Next) OldHead = PushEntryList(ListHead, ListEntry);
+ OldHead = ListHead->Next;
+ PushEntryList(ListHead, ListEntry);
KeReleaseSpinLock(Lock, OldIrql);
return OldHead;
}