mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +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
|
do
|
||||||
{
|
{
|
||||||
oldslh = *ListHead;
|
oldslh = *(volatile SLIST_HEADER *)ListHead;
|
||||||
le = oldslh.Next.Next;
|
le = oldslh.Next.Next;
|
||||||
if(le == NULL)
|
if(le == NULL)
|
||||||
{
|
{
|
||||||
|
@ -481,7 +481,7 @@ InterlockedPushEntrySList(IN PSLIST_HEADER ListHead,
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
oldslh = *ListHead;
|
oldslh = *(volatile SLIST_HEADER *)ListHead;
|
||||||
newslh.Depth = oldslh.Depth + 1;
|
newslh.Depth = oldslh.Depth + 1;
|
||||||
newslh.Sequence = oldslh.Sequence + 1;
|
newslh.Sequence = oldslh.Sequence + 1;
|
||||||
ListEntry->Next = oldslh.Next.Next;
|
ListEntry->Next = oldslh.Next.Next;
|
||||||
|
|
|
@ -779,6 +779,9 @@ ObReferenceObjectByHandle(HANDLE Handle,
|
||||||
HandleEntry);
|
HandleEntry);
|
||||||
|
|
||||||
KeLeaveCriticalRegion();
|
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);
|
return(STATUS_ACCESS_DENIED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue