summaryrefslogtreecommitdiff
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-17 15:01:38 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-04-17 15:01:38 +0100
commitdbb90436f8385a33b9938c66a0fa3eff8c36a4cc (patch)
tree6dd29abf59b6e039efc022132d65e7eb24d33c26 /src/gallium/include
parent995a168dea015ea6063bdf18ca0b031fd428460a (diff)
pipe: Fix InterlockedDecrement usage.
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_atomic.h2
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