Commit df6818dd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix InterlockedExchangeAdd use

parent a9daba19
...@@ -41,8 +41,8 @@ uintptr_t vlc_atomic_set (vlc_atomic_t *atom, uintptr_t v) ...@@ -41,8 +41,8 @@ uintptr_t vlc_atomic_set (vlc_atomic_t *atom, uintptr_t v)
uintptr_t vlc_atomic_add (vlc_atomic_t *atom, uintptr_t v) uintptr_t vlc_atomic_add (vlc_atomic_t *atom, uintptr_t v)
{ {
#if defined (WIN64) #if defined (WIN64)
return InterlockedExchangeAdd64 (&atom->s, v); return InterlockedExchangeAdd64 (&atom->s, v) + v;
#else #else
return InterlockedExchangeAdd (&atom->s, v); return InterlockedExchangeAdd (&atom->s, v) + v;
#endif #endif
} }
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