diff --git a/OGLCompilersDLL/InitializeDll.cpp b/OGLCompilersDLL/InitializeDll.cpp
index f7f6af0076c668e0d3f2ba29321dba5876310a8d..cc2b742ed500ea3102dbdcccd2afef4f32801fcf 100644
--- a/OGLCompilersDLL/InitializeDll.cpp
+++ b/OGLCompilersDLL/InitializeDll.cpp
@@ -74,7 +74,12 @@ bool InitProcess()
         return false;
     }
 
-    InitThread();
+    if (! InitThread()) {
+        assert(0 && "InitProcess(): Failed to initialize thread");
+
+        glslang::ReleaseGlobalLock();
+        return false;
+    }
 
     glslang::ReleaseGlobalLock();
     return true;