mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
[CSRSRV]: Fix scenario when a new thread is being created from within CSRSRV and it could not register itself due to the new server-to-server support. Fixes CTRL-C and using the "X" button in a console window to close it, which had regressed since the server-to-server commit.
svn path=/trunk/; revision=55700
This commit is contained in:
parent
7d4a765fe0
commit
59ac9cae89
|
@ -1227,7 +1227,7 @@ CsrCallServerFromServer(PCSR_API_MESSAGE ReceiveMsg,
|
|||
_SEH2_TRY
|
||||
{
|
||||
/* Call the API and get the result */
|
||||
Status = (ServerDll->DispatchTable[ApiId])(ReceiveMsg, &Reply);
|
||||
Status = ServerDll->DispatchTable[ApiId](ReceiveMsg, &Reply);
|
||||
|
||||
/* Return the result, no matter what it is */
|
||||
ReplyMsg->Status = Status;
|
||||
|
|
|
@ -173,6 +173,7 @@ CSR_API(CsrSrvCreateThread)
|
|||
PCSR_PROCESS CsrProcess;
|
||||
|
||||
CurrentThread = NtCurrentTeb()->CsrClientThread;
|
||||
if (!CurrentThread) return STATUS_SUCCESS; // server-to-server
|
||||
CsrProcess = CurrentThread->Process;
|
||||
|
||||
if (CsrProcess->ClientId.UniqueProcess != Request->Data.CreateThreadRequest.ClientId.UniqueProcess)
|
||||
|
|
Loading…
Reference in a new issue