mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
minor optimization fix for single linked lists
svn path=/trunk/; revision=14322
This commit is contained in:
parent
63fa5da683
commit
2cf86ba40d
2 changed files with 5 additions and 2 deletions
|
@ -449,7 +449,7 @@ InterlockedPopEntrySList(IN PSLIST_HEADER ListHead)
|
|||
|
||||
do
|
||||
{
|
||||
oldslh = *ListHead;
|
||||
oldslh = *(volatile SLIST_HEADER *)ListHead;
|
||||
le = oldslh.Next.Next;
|
||||
if(le == NULL)
|
||||
{
|
||||
|
@ -481,7 +481,7 @@ InterlockedPushEntrySList(IN PSLIST_HEADER ListHead,
|
|||
|
||||
do
|
||||
{
|
||||
oldslh = *ListHead;
|
||||
oldslh = *(volatile SLIST_HEADER *)ListHead;
|
||||
newslh.Depth = oldslh.Depth + 1;
|
||||
newslh.Sequence = oldslh.Sequence + 1;
|
||||
ListEntry->Next = oldslh.Next.Next;
|
||||
|
|
|
@ -779,6 +779,9 @@ ObReferenceObjectByHandle(HANDLE Handle,
|
|||
HandleEntry);
|
||||
|
||||
KeLeaveCriticalRegion();
|
||||
|
||||
DPRINT1("GrantedAccess: 0x%x, ~GrantedAccess: 0x%x, DesiredAccess: 0x%x, denied: 0x%x\n", GrantedAccess, ~GrantedAccess, DesiredAccess, ~GrantedAccess & DesiredAccess);
|
||||
KEBUGCHECK(0);
|
||||
|
||||
return(STATUS_ACCESS_DENIED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue