aboutsummaryrefslogtreecommitdiff
path: root/OGLCompilersDLL/InitializeDll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'OGLCompilersDLL/InitializeDll.cpp')
-rw-r--r--OGLCompilersDLL/InitializeDll.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/OGLCompilersDLL/InitializeDll.cpp b/OGLCompilersDLL/InitializeDll.cpp
index 9d81f578..abea9108 100644
--- a/OGLCompilersDLL/InitializeDll.cpp
+++ b/OGLCompilersDLL/InitializeDll.cpp
@@ -102,7 +102,7 @@ bool InitThread()
return false;
}
- if (OS_GetTLSValue(ThreadInitializeIndex) != nullptr)
+ if (OS_GetTLSValue(ThreadInitializeIndex) != 0)
return true;
if (! OS_SetTLSValue(ThreadInitializeIndex, (void *)1)) {
@@ -130,8 +130,8 @@ bool DetachThread()
//
// Function is re-entrant and this thread may not have been initialized.
//
- if (OS_GetTLSValue(ThreadInitializeIndex) != nullptr) {
- if (!OS_SetTLSValue(ThreadInitializeIndex, nullptr)) {
+ if (OS_GetTLSValue(ThreadInitializeIndex) != 0) {
+ if (!OS_SetTLSValue(ThreadInitializeIndex, (void *)0)) {
assert(0 && "DetachThread(): Unable to clear init flag.");
success = false;
}