Commit 91fc1084 authored by Alexandre Julliard's avatar Alexandre Julliard

ws2_32: Use Win32 APIs for interlocked functions.

parent 55ed98cb
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment