Author: tkreuzer
Date: Mon Jul 28 17:00:17 2008
New Revision: 34919
URL:
http://svn.reactos.org/svn/reactos?rev=34919&view=rev
Log:
fix _InterlockedDecrement64
Modified:
branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h
Modified: branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] Mon Jul 28
17:00:17 2008
@@ -481,7 +481,7 @@
#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)