Use InterlockedCompareExchange instead of non-existing InterlockedCompareExchange32

This commit is contained in:
Mike Hommey 2015-03-17 12:09:30 +09:00
parent 04211e2266
commit c9db461ffb

View File

@ -457,7 +457,7 @@ atomic_cas_uint32(uint32_t *p, uint32_t c, uint32_t s)
{
uint32_t o;
o = InterlockedCompareExchange32(p, s, c);
o = InterlockedCompareExchange(p, s, c);
return (o != c);
}