diff --git a/Source/Core/Common/Src/Atomic_Win32.h b/Source/Core/Common/Src/Atomic_Win32.h index c79853db36..cd8b22075d 100644 --- a/Source/Core/Common/Src/Atomic_Win32.h +++ b/Source/Core/Common/Src/Atomic_Win32.h @@ -43,7 +43,7 @@ namespace Common { inline void AtomicAdd(volatile u32& target, u32 value) { - InterlockedAdd((volatile LONG*)&target, (LONG)value); + InterlockedExchangeAdd((volatile LONG*)&target, (LONG)value); } inline void AtomicIncrement(volatile u32& target) {