commit | 29cd98db18b40bdf95d49082cf80142ef2eb05d3 | [log] [tgz] |
---|---|---|
author | Oscar Fuentes <ofv@wanadoo.es> | Tue Jun 30 14:12:28 2009 +0000 |
committer | Oscar Fuentes <ofv@wanadoo.es> | Tue Jun 30 14:12:28 2009 +0000 |
tree | b25767341aa50f5f29918800900e501f15139f13 | |
parent | 0b3b53a8cfa237f77c5a798e0f7035ac2e7b4a2f [diff] |
Fixed assert that checks return value of TlsSetValue. See http://msdn.microsoft.com/en-us/library/ms686818(VS.85).aspx Patch by Olaf Krzikalla! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74526 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc index 8ab37d9..c8f7840 100644 --- a/lib/System/Win32/ThreadLocal.inc +++ b/lib/System/Win32/ThreadLocal.inc
@@ -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); } }