diff options
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/threads.h | 3 |
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; } |