Moved InitializeCriticalSectionAndSpinCount before original function so critsec is here BEFORE cdstreamthread spawns

This commit is contained in:
Silent 2017-09-20 15:00:21 +02:00
parent 21d0c51519
commit bda0c717a6

View file

@ -1336,8 +1336,9 @@ static void CdStreamInitThread()
CdStreamThreadOnObject = CV::CdStreamThread;
}
orgCdStreamInitThread();
InitializeCriticalSectionAndSpinCount( &CdStreamCritSec, 10 );
orgCdStreamInitThread();
}
}