From: José Fonseca Date: Fri, 17 Apr 2009 14:01:38 +0000 (+0100) Subject: pipe: Fix InterlockedDecrement usage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbb90436f8385a33b9938c66a0fa3eff8c36a4cc;p=mesa.git pipe: Fix InterlockedDecrement usage. --- diff --git a/src/gallium/include/pipe/p_atomic.h b/src/gallium/include/pipe/p_atomic.h index 54dab12f894..a963267e264 100644 --- a/src/gallium/include/pipe/p_atomic.h +++ b/src/gallium/include/pipe/p_atomic.h @@ -234,7 +234,7 @@ struct pipe_atomic static INLINE boolean p_atomic_dec_zero(struct pipe_atomic *v) { - return InterlockedDecrement(&v->count); + return InterlockedDecrement(&v->count) != 0; } static INLINE void