mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Moved InitializeCriticalSectionAndSpinCount before original function so critsec is here BEFORE cdstreamthread spawns
This commit is contained in:
parent
21d0c51519
commit
bda0c717a6
1 changed files with 2 additions and 1 deletions
|
@ -1336,8 +1336,9 @@ static void CdStreamInitThread()
|
||||||
CdStreamThreadOnObject = CV::CdStreamThread;
|
CdStreamThreadOnObject = CV::CdStreamThread;
|
||||||
}
|
}
|
||||||
|
|
||||||
orgCdStreamInitThread();
|
|
||||||
InitializeCriticalSectionAndSpinCount( &CdStreamCritSec, 10 );
|
InitializeCriticalSectionAndSpinCount( &CdStreamCritSec, 10 );
|
||||||
|
|
||||||
|
orgCdStreamInitThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue