InitProcess() should fail if InitThread() does.
authorAaron Hamilton <aaron@correspondwith.me>
Wed, 2 Dec 2015 07:39:26 +0000 (07:39 +0000)
committerAaron Hamilton <aaron@correspondwith.me>
Wed, 2 Dec 2015 07:42:20 +0000 (07:42 +0000)
OGLCompilersDLL/InitializeDll.cpp

index f7f6af0..cc2b742 100644 (file)
@@ -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;