From fdd13c6ff5bbb692818daf9aed458ef4dd902468 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 28 Aug 2002 07:08:26 +0000 Subject: [PATCH] Changed the parameters for InterlockedCompareExchange. svn path=/trunk/; revision=3420 --- reactos/include/ddk/exfuncs.h | 17 +++++------------ reactos/ntoskrnl/ex/i386/interlck.c | 10 +++++----- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/reactos/include/ddk/exfuncs.h b/reactos/include/ddk/exfuncs.h index b4cddaf5114..fc13a68dbe7 100644 --- a/reactos/include/ddk/exfuncs.h +++ b/reactos/include/ddk/exfuncs.h @@ -761,22 +761,15 @@ ULONG STDCALL Exi386InterlockedExchangeUlong(IN PULONG Target, IN ULONG Value); -/* + LONG FASTCALL InterlockedCompareExchange ( - PLONG Target, - LONG Value, - LONG Reference - ); -*/ -PVOID -FASTCALL -InterlockedCompareExchange ( - PVOID * Destination, - PVOID Exchange, - PVOID Comperand + PLONG Destination, + LONG Exchange, + LONG Comperand ); + #ifdef _GNU_H_WINDOWS_H #ifdef InterlockedDecrement #undef InterlockedDecrement diff --git a/reactos/ntoskrnl/ex/i386/interlck.c b/reactos/ntoskrnl/ex/i386/interlck.c index 969b5b80989..83a8464ae00 100644 --- a/reactos/ntoskrnl/ex/i386/interlck.c +++ b/reactos/ntoskrnl/ex/i386/interlck.c @@ -1,4 +1,4 @@ -/* $Id: interlck.c,v 1.1 2001/07/12 17:17:56 ekohl Exp $ +/* $Id: interlck.c,v 1.2 2002/08/28 07:08:25 hbirr Exp $ * * reactos/ntoskrnl/ex/i386/interlck.c * @@ -148,10 +148,10 @@ __asm__("\n\t.global @InterlockedExchangeAdd@8\n\t" * FASTCALL: @InterlockedCompareExchange@12 * STDCALL: _InterlockedCompareExchange@12 */ -PVOID FASTCALL -InterlockedCompareExchange(PVOID *Destination, - PVOID Exchange, - PVOID Comperand); +LONG FASTCALL +InterlockedCompareExchange(PLONG Destination, + LONG Exchange, + LONG Comperand); __asm__("\n\t.global @InterlockedCompareExchange@12\n\t" "@InterlockedCompareExchange@12:\n\t"