mirror of
https://github.com/bb107/MemoryModulePP
synced 2026-06-08 13:15:33 +00:00
Add support for SetUnhandledExceptionFilter
This commit is contained in:
@@ -347,7 +347,11 @@ VOID NTAPI HookLdrShutdownThread(VOID) {
|
||||
entry = entry->Flink;
|
||||
}
|
||||
|
||||
--MmpGlobalDataPtr->MmpTls->MmpActiveThreadCount;
|
||||
if (record) {
|
||||
--MmpGlobalDataPtr->MmpTls->MmpActiveThreadCount;
|
||||
}
|
||||
|
||||
assert(0 < (int)MmpGlobalDataPtr->MmpTls->MmpActiveThreadCount);
|
||||
|
||||
LeaveCriticalSection(&MmpGlobalDataPtr->MmpTls->MmpTlspLock);
|
||||
|
||||
@@ -371,7 +375,7 @@ VOID NTAPI HookLdrShutdownThread(VOID) {
|
||||
}
|
||||
else {
|
||||
if (MmpGlobalDataPtr->MmpTls->MmpTlsList.Flink != &MmpGlobalDataPtr->MmpTls->MmpTlsList) {
|
||||
assert(false);
|
||||
assert(NtCurrentTeb()->ThreadLocalStoragePointer == nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user