sync to trunk head (37853) (except rbuild changes)
[reactos.git] / reactos / lib / 3rdparty / libwine / debug.c
index 472525d..24bd8cc 100644 (file)
@@ -262,7 +262,7 @@ static char *get_temp_buffer( size_t size )
     char *ret;
     int idx;
 
-    idx = interlocked_xchg_add( &pos, 1 ) % (sizeof(list)/sizeof(list[0]));
+    idx = InterlockedExchangeAdd( &pos, 1 ) % (sizeof(list)/sizeof(list[0]));
     if ((ret = realloc( list[idx], size ))) list[idx] = ret;
     return ret;
 }