Commit 7f9c0373 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-10-27 08:00:03 by simonmar]

Fix getThreadLocalVar() on Win32 - thanks for Krasimir for finding the bug.
parent 2909e6fb
......@@ -137,9 +137,13 @@ getThreadLocalVar (ThreadLocalKey *key)
void *r;
r = TlsGetValue(*key);
if (r == NULL) {
#ifdef DEBUG
// r is allowed to be NULL - it can mean that either there was an
// error or the stored value is in fact NULL.
if (GetLastError() != NO_ERROR) {
barf("getThreadLocalVar: key not found");
return r;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment