Browse Source

Vielleicht ein fehler behoben

Kolja Strohm 5 years ago
parent
commit
359a6efc75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Thread.cpp

+ 1 - 1
Thread.cpp

@@ -244,7 +244,7 @@ Thread *ThreadRegister::zThread( pthread_t handle )
     EnterCriticalSection( &cs );
     for( auto i = threads.getIterator(); i; i++ )
     {
-        if( i->getThreadHandle() && GetThreadId( i->getThreadHandle() ) == GetThreadId( handle ) )
+        if( i->getThreadHandle() && GetThreadId( i->getThreadHandle() ) == GetThreadId( handle ) && GetThreadId( handle ) != 0 )
         {
             LeaveCriticalSection( &cs );
             return i;