Author: ion
Date: Sun Feb 19 10:00:47 2012
New Revision: 55705
URL:
http://svn.reactos.org/svn/reactos?rev=55705&view=rev
Log:
[CSRSRV]: Take a refernece to the client thread since we are dereffing it...
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/api/wapi.c [iso-8859-1] Sun Feb 19
10:00:47 2012
@@ -1189,6 +1189,7 @@
Request->Header.ClientId.UniqueThread);
}
//DPRINT1("Thread found: %p %p\n", Thread, Process);
+ if (Thread) CsrLockedReferenceThread(Thread);
if (Thread) NtCurrentTeb()->CsrClientThread = Thread;