From 57fe9d163dff9f0d9b8347d2001e8f14bd9e63d6 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 28 Jul 2008 22:00:17 +0000 Subject: [PATCH] fix _InterlockedDecrement64 svn path=/branches/ros-amd64-bringup/; revision=34919 --- reactos/include/psdk/intrin_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/include/psdk/intrin_x86.h b/reactos/include/psdk/intrin_x86.h index 6bd172e5981..6ae583fb968 100644 --- a/reactos/include/psdk/intrin_x86.h +++ b/reactos/include/psdk/intrin_x86.h @@ -481,7 +481,7 @@ static __inline__ __attribute__((always_inline)) long _InterlockedIncrement16(vo #if defined(_M_AMD64) static __inline__ __attribute__((always_inline)) long long _InterlockedDecrement64(volatile long long * const lpAddend) { - return _InterlockedExchangeAdd(lpAddend, -1) - 1; + return _InterlockedExchangeAdd64(lpAddend, -1) - 1; } static __inline__ __attribute__((always_inline)) long long _InterlockedIncrement64(volatile long long * const lpAddend)