From 29d3e89b71281c626f151a1585a40d9d2448123b Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 26 Apr 2005 02:41:11 +0000 Subject: '' --- ptw32_InterlockedCompareExchange.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ptw32_InterlockedCompareExchange.c') diff --git a/ptw32_InterlockedCompareExchange.c b/ptw32_InterlockedCompareExchange.c index 5ffc754..0094635 100644 --- a/ptw32_InterlockedCompareExchange.c +++ b/ptw32_InterlockedCompareExchange.c @@ -75,7 +75,6 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location, #if defined(_MSC_VER) || defined(__WATCOMC__) || (defined(__BORLANDC__) && defined(HAVE_TASM32)) #define HAVE_INLINABLE_INTERLOCKED_CMPXCHG - { _asm { PUSH ecx @@ -86,7 +85,7 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location, LOCK CMPXCHG dword ptr [ecx],edx MOV dword ptr [result], eax POP edx - POP ecx + POP ecx } } else @@ -100,7 +99,7 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location, CMPXCHG dword ptr [ecx],edx MOV dword ptr [result], eax POP edx - POP ecx + POP ecx } } -- cgit v1.2.3