Tools/DiskTook - Fixed absolute path support
[tpg/acess2.git] / Tools / nativelib / threads.c
index aec7076..9a4bfdf 100644 (file)
@@ -22,8 +22,10 @@ tShortSpinlock       glThreadListLock;
 // === CODE ===
 void Threads_int_Init(void)
 {
-       lpThreads_This = Threads_int_CreateTCB(NULL);
-       Threads_SetName("ThreadZero");
+       if( !lpThreads_This ) {
+               lpThreads_This = Threads_int_CreateTCB(NULL);
+               Threads_SetName("ThreadZero");
+       }
 }
 
 tThread *Proc_GetCurThread(void)

UCC git Repository :: git.ucc.asn.au