mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Make NTDLL not bind automatically to the Win32 server.
This will allow other personality subsystem not to depend on Win32. svn path=/trunk/; revision=17411
This commit is contained in:
parent
3bea619a9a
commit
9544a940a9
3 changed files with 12 additions and 4 deletions
|
@ -218,7 +218,7 @@ DllMain(HANDLE hDll,
|
|||
/*
|
||||
* Connect to the csrss server
|
||||
*/
|
||||
Status = CsrClientConnectToServer(NULL,
|
||||
Status = CsrClientConnectToServer(L"\\Windows\\ApiPort",
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
|
|
|
@ -109,8 +109,8 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
|||
ULONG ContextLength,
|
||||
PBOOLEAN ServerToServerCall)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\Windows\\ApiPort");
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
UNICODE_STRING PortName;
|
||||
ULONG ConnectInfoLength;
|
||||
CSR_API_MESSAGE Request;
|
||||
PORT_VIEW LpcWrite;
|
||||
|
@ -122,6 +122,13 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (NULL == ObjectDirectory)
|
||||
{
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
RtlInitUnicodeString (& PortName, ObjectDirectory);
|
||||
|
||||
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
||||
Status = NtCreateSection(&CsrSectionHandle,
|
||||
SECTION_ALL_ACCESS,
|
||||
|
|
|
@ -458,7 +458,8 @@ CsrpApiRegisterDef (ULONG argc, PWSTR* argv)
|
|||
static NTSTATUS
|
||||
CsrpCCTS (ULONG argc, PWSTR* argv)
|
||||
{
|
||||
return CsrClientConnectToServer(NULL, 0, NULL, NULL, 0, NULL);
|
||||
return CsrClientConnectToServer(L"\\Windows\\ApiPort",
|
||||
0, NULL, NULL, 0, NULL);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
|
Loading…
Reference in a new issue