diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-04-17 15:01:38 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-04-17 15:01:38 +0100 |
commit | dbb90436f8385a33b9938c66a0fa3eff8c36a4cc (patch) | |
tree | 6dd29abf59b6e039efc022132d65e7eb24d33c26 | |
parent | 995a168dea015ea6063bdf18ca0b031fd428460a (diff) |
pipe: Fix InterlockedDecrement usage.
-rw-r--r-- | src/gallium/include/pipe/p_atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_atomic.h b/src/gallium/include/pipe/p_atomic.h index 54dab12f89..a963267e26 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 |