From 91fc10847e68e31e9a4541d8f9daa3392a91adaf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 11 Mar 2015 14:21:10 +0900 Subject: [PATCH] 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 cce1bc8d528..a3b6b264792 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) { -- 2.11.4.GIT