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:
Emanuele Aliberti 2005-09-25 13:36:27 +00:00
parent 6ace27feae
commit 294b660b25

View file

@ -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)) +