[ros-diffs] [tkreuzer] 49678: [RTL] Don't use _InterlockedCompareExchangePointer, that function doesn't exist on x86

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Nov 21 01:36:52 UTC 2010


Author: tkreuzer
Date: Sun Nov 21 01:36:51 2010
New Revision: 49678

URL: http://svn.reactos.org/svn/reactos?rev=49678&view=rev
Log:
[RTL]
Don't use _InterlockedCompareExchangePointer, that function doesn't exist on x86

Modified:
    branches/cmake-bringup/lib/rtl/critical.c

Modified: branches/cmake-bringup/lib/rtl/critical.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/rtl/critical.c?rev=49678&r1=49677&r2=49678&view=diff
==============================================================================
--- branches/cmake-bringup/lib/rtl/critical.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/rtl/critical.c [iso-8859-1] Sun Nov 21 01:36:51 2010
@@ -65,9 +65,9 @@
         }
         DPRINT("Created Event: %p \n", hNewEvent);
 
-        if (_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
-                                               (PVOID)hNewEvent,
-                                                0)) {
+        if (InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
+                                              (PVOID)hNewEvent,
+                                               0)) {
 
             /* Some just created an event */
             DPRINT("Closing already created event: %p\n", hNewEvent);




More information about the Ros-diffs mailing list