aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-17 22:57:16 -0700
committerChris Robinson <[email protected]>2014-04-17 22:57:16 -0700
commit579e7c10c22424e99c1a91696fd8632758c169b4 (patch)
tree5b0eb2238dd5cacd43aac9fdc0e4067cf6a5623e /OpenAL32/Include
parent6c8bf9ec42b74635e05241a769f70ea5572a335c (diff)
Check TlsSetValue for error
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/threads.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/threads.h b/OpenAL32/Include/threads.h
index afeaeb4b..07d5ef79 100644
--- a/OpenAL32/Include/threads.h
+++ b/OpenAL32/Include/threads.h
@@ -99,7 +99,8 @@ inline void *altss_get(altss_t tss_id)
inline int altss_set(altss_t tss_id, void *val)
{
- TlsSetValue(tss_id, val);
+ if(TlsSetValue(tss_id, val) == 0)
+ return althrd_error;
return althrd_success;
}