Alexandre Julliard : ws2_32: Use Win32 APIs for interlocked functions.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 11 10:00:42 CDT 2015


Module: wine
Branch: master
Commit: 91fc10847e68e31e9a4541d8f9daa3392a91adaf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=91fc10847e68e31e9a4541d8f9daa3392a91adaf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar 11 14:21:10 2015 +0900

ws2_32: Use Win32 APIs for interlocked functions.

---

 dlls/ws2_32/socket.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index cce1bc8..a3b6b26 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -386,7 +386,7 @@ static void release_async_io( struct ws2_async_io *io )
     {
         struct ws2_async_io *next = async_io_freelist;
         io->next = next;
-        if (interlocked_cmpxchg_ptr( (void **)&async_io_freelist, io, next ) == next) return;
+        if (InterlockedCompareExchangePointer( (void **)&async_io_freelist, io, next ) == next) return;
     }
 }
 
@@ -394,7 +394,7 @@ static struct ws2_async_io *alloc_async_io( DWORD size )
 {
     /* first free remaining previous fileinfos */
 
-    struct ws2_async_io *io = interlocked_xchg_ptr( (void **)&async_io_freelist, NULL );
+    struct ws2_async_io *io = InterlockedExchangePointer( (void **)&async_io_freelist, NULL );
 
     while (io)
     {




More information about the wine-cvs mailing list