Merge 14981:15268 from trunk
[reactos.git] / reactos / lib / ntdll / rtl / intrlck.c
index 7cc7198..9504cb3 100644 (file)
@@ -116,14 +116,14 @@ InterlockedExchange(LPLONG target, LONG value )
  * RETURNS
  *     Prior value of value pointed to by Destination
  */
-PVOID
+LONG
 STDCALL
 InterlockedCompareExchange(
-           PVOID *Destination,
-           PVOID Exchange,
-            PVOID Comperand     )
+       PLONG Destination,
+       LONG Exchange,
+       LONG Comperand)
 {
-       PVOID ret;
+       LONG ret;
        __asm__ ( /* lock for SMP systems */
                   "lock\n\t"
                   "cmpxchgl %2,(%1)"