[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:
Hermès Bélusca-Maïto
2015-08-16 16:00:08 +00:00
parent f135d46c0d
commit ebf3ac834c
@@ -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));
}