Skip to content

Commit 429d549

Browse files
committed
Removed incorrect assertion of tpp thread when processing tls
1 parent b54c17f commit 429d549

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

MemoryModule/MmpTls.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,11 @@ NTSTATUS NTAPI HookNtSetInformationProcess(
630630
entry = entry->Flink;
631631
}
632632

633-
assert(found);
634-
ProcessTlsInformation->ThreadData[i].Flags = Tls->ThreadData[i].Flags;
635-
ProcessTlsInformation->ThreadData[i].ThreadId = Tls->ThreadData[i].ThreadId;
633+
//assert(found);
634+
if (found) {
635+
ProcessTlsInformation->ThreadData[i].Flags = Tls->ThreadData[i].Flags;
636+
ProcessTlsInformation->ThreadData[i].ThreadId = Tls->ThreadData[i].ThreadId;
637+
}
636638
}
637639
LeaveCriticalSection(&MmpTlspLock);
638640

0 commit comments

Comments
 (0)