Explorar el Código

Vielleicht ein fehler behoben

Kolja Strohm hace 5 años
padre
commit
359a6efc75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;