diff options
author | Chris Robinson <[email protected]> | 2009-12-04 01:33:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-04 01:33:50 -0800 |
commit | 58ecc7fad40d7ba46ba660e1666bfbe62e10d37c (patch) | |
tree | abb0a7fdabc9bcb1f2584d24719ef299aab40baa /OpenAL32/Include/alMain.h | |
parent | 311cc5c62f4e578a3a845bd04933c097ee1b8e56 (diff) |
Check for potential NULL accesses with the IsBadWritePtr wrapper
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
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) |