Check for potential NULL accesses with the IsBadWritePtr wrapper

This commit is contained in:
Chris Robinson 2009-12-04 01:33:50 -08:00
parent 311cc5c62f
commit 58ecc7fad4

View File

@ -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)