From 579e7c10c22424e99c1a91696fd8632758c169b4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 17 Apr 2014 22:57:16 -0700 Subject: [PATCH] Check TlsSetValue for error --- OpenAL32/Include/threads.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }