mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[CSRSRV]: Add a diagnostic DPRINT in order to better understand on which situations some NtClose call fails on a thread handle when closing it, and leads to a failed assertion in CSR.
CORE-9742 svn path=/trunk/; revision=68719
This commit is contained in:
@@ -438,6 +438,11 @@ CsrThreadRefcountZero(IN PCSR_THREAD CsrThread)
|
||||
{
|
||||
UnProtectHandle(CsrThread->ThreadHandle);
|
||||
Status = NtClose(CsrThread->ThreadHandle);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
DPRINT1("CSR: NtClose failed, we are going to ASSERT, Status = 0x%08lx; [%02x,%02x] Process: 0x%p; ThreadHandle: 0x%p\n",
|
||||
Status, CsrThread->ClientId->UniqueProcess, CsrThread->ClientId->UniqueThread, CsrProcess, CsrThread->ThreadHandle);
|
||||
|
||||
ASSERT(NT_SUCCESS(Status));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user