File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,7 +274,6 @@ HookRtlUserThreadStart(
274274
275275VOID NTAPI HookLdrShutdownThread (VOID) {
276276
277- PLIST_ENTRY entry;
278277 PMMP_TLSP_RECORD record = nullptr ;
279278
280279 //
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ CRITICAL_SECTION MmpPostponedTlsLock;
2020DWORD WINAPI MmpReleasePostponedTlsWorker (PVOID) {
2121
2222 DWORD code;
23+ DWORD waitTime = INFINITE;
2324
2425 while (true ) {
25- WaitForSingleObject (MmpPostponedTlsEvent, INFINITE );
26+ WaitForSingleObject (MmpPostponedTlsEvent, waitTime );
2627
2728 EnterCriticalSection (&MmpPostponedTlsLock);
2829
@@ -61,6 +62,8 @@ DWORD WINAPI MmpReleasePostponedTlsWorker(PVOID) {
6162
6263 }
6364
65+ waitTime = MmpPostponedTlsList.empty () ? INFINITE : 1000 ;
66+
6467 LeaveCriticalSection (&MmpPostponedTlsLock);
6568 }
6669
You can’t perform that action at this time.
0 commit comments