mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Required for binary compatibility with MS KERNEL32.DLL.
NOTE Filip and I still don't understand why KERNEL32 calls twice CsrConnectToServer. A possible explanation is because the Win32 server is a dual server: gui+console. This differs with our current implementation in the SM: we accept only console registration requests (see SmpHandleConnectionRequest). svn path=/trunk/; revision=18050
This commit is contained in:
parent
6ace27feae
commit
294b660b25
1 changed files with 8 additions and 1 deletions
|
@ -180,7 +180,14 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
|||
PSID SystemSid = NULL;
|
||||
CSR_CONNECTION_INFO ConnectionInfo;
|
||||
ULONG ConnectionInfoLength = sizeof(CSR_CONNECTION_INFO);
|
||||
DPRINT("CsrConnectToServer\n");
|
||||
|
||||
DPRINT("%s(%S)\n", __FUNCTION__, ObjectDirectory);
|
||||
|
||||
/* Binary compatibility with MS KERNEL32 */
|
||||
if (NULL == ObjectDirectory)
|
||||
{
|
||||
ObjectDirectory = L"\\Windows";
|
||||
}
|
||||
|
||||
/* Calculate the total port name size */
|
||||
PortNameLength = ((wcslen(ObjectDirectory) + 1) * sizeof(WCHAR)) +
|
||||
|
|
Loading…
Reference in a new issue