Index: ThreadLocal.inc
===================================================================
--- ThreadLocal.inc	(revision 74519)
+++ ThreadLocal.inc	(working copy)
@@ -43,7 +43,7 @@
 void ThreadLocalImpl::setInstance(const void* d){
   DWORD* tls = static_cast<DWORD*>(data);
   int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
-  assert(errorcode == 0);
+  assert(errorcode != 0);
 }
 
 }
