From b7d8d95bf18b7038ffd2764e0fdad48093c301c8 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 4 May 2009 15:27:37 +0000 Subject: [PATCH] Fix asm implementations of RtlInterlockedPopEntrySList, RtlInterlockedPushEntrySList and RtlInterlockedFlushSList, by correcting the stack offset for the parameters. Thanks to Pigglesworth for the hint. svn path=/trunk/; revision=40785 --- reactos/lib/rtl/i386/interlck.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/lib/rtl/i386/interlck.S b/reactos/lib/rtl/i386/interlck.S index 27aa6ae9ad2..dd8529746f5 100644 --- a/reactos/lib/rtl/i386/interlck.S +++ b/reactos/lib/rtl/i386/interlck.S @@ -24,13 +24,13 @@ _RtlInterlockedPopEntrySList@4: push ebp /* Load ListHead into ebp */ - mov ebp, [esp + 8] + mov ebp, [esp + 12] /* Load ListHead->Next into eax */ mov eax, [ebp] /* Load ListHead->Depth and ListHead->Sequence into edx */ - mov edx, [ebp+4] + mov edx, [ebp + 4] 1: /* Check if ListHead->Next is NULL */ @@ -70,10 +70,10 @@ _RtlInterlockedPushEntrySList@8: push ebp /* Load ListHead into ebp */ - mov ebp, [esp + 4] + mov ebp, [esp + 12] /* Load ListEntry into ebx */ - mov ebx, [esp + 12] + mov ebx, [esp + 16] /* Load ListHead->Next into eax */ mov eax, [ebp] @@ -116,7 +116,7 @@ _RtlInterlockedFlushSList@4: xor ebx, ebx /* Load ListHead into ebp */ - mov ebp, [esp + 4] + mov ebp, [esp + 12] /* Load ListHead->Next into eax */ mov eax, [ebp]