[vlc-commits] commit: Win32: fix InterlockedExchangeAdd use ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Tue Jun 29 16:29:03 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 29 17:29:50 2010 +0300| [df6818ddca9ea664cded20fcf4a7cd5fc7106595] | committer: Rémi Denis-Courmont
Win32: fix InterlockedExchangeAdd use
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df6818ddca9ea664cded20fcf4a7cd5fc7106595
---
src/win32/atomic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/win32/atomic.c b/src/win32/atomic.c
index bf11178..3110649 100644
--- a/src/win32/atomic.c
+++ b/src/win32/atomic.c
@@ -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)
{
#if defined (WIN64)
- return InterlockedExchangeAdd64 (&atom->s, v);
+ return InterlockedExchangeAdd64 (&atom->s, v) + v;
#else
- return InterlockedExchangeAdd (&atom->s, v);
+ return InterlockedExchangeAdd (&atom->s, v) + v;
#endif
}
More information about the vlc-commits
mailing list