Author: hbelusca
Date: Sun Aug 16 16:00:08 2015
New Revision: 68719
URL:
http://svn.reactos.org/svn/reactos?rev=68719&view=rev
Log:
[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
Modified:
trunk/reactos/subsystems/win32/csrsrv/thredsup.c
Modified: trunk/reactos/subsystems/win32/csrsrv/thredsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrsrv/th…
==============================================================================
--- trunk/reactos/subsystems/win32/csrsrv/thredsup.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrsrv/thredsup.c [iso-8859-1] Sun Aug 16 16:00:08
2015
@@ -438,6 +438,11 @@
{
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));
}