ws2_32: Use Win32 APIs for interlocked functions.

oldstable
Alexandre Julliard 2015-03-11 14:21:10 +09:00
parent 55ed98cb88
commit 91fc10847e
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{