aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-04 01:33:50 -0800
committerChris Robinson <[email protected]>2009-12-04 01:33:50 -0800
commit58ecc7fad40d7ba46ba660e1666bfbe62e10d37c (patch)
treeabb0a7fdabc9bcb1f2584d24719ef299aab40baa /OpenAL32
parent311cc5c62f4e578a3a845bd04933c097ee1b8e56 (diff)
Check for potential NULL accesses with the IsBadWritePtr wrapper
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 4094d894..366d6577 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -38,7 +38,7 @@ typedef DWORD tls_type;
#include <time.h>
#include <errno.h>
-#define IsBadWritePtr(a,b) (0)
+#define IsBadWritePtr(a,b) ((a) == NULL && (b) != 0)
typedef pthread_key_t tls_type;
#define tls_create(x) pthread_key_create((x), NULL)