[CSRLIB] Remove old hack in CsrpConnectToServer(). ObjectDirectory cannot be NULL (otherwise it's caller's bug).

This commit is contained in:
Hermès Bélusca-Maïto 2022-10-29 18:52:34 +02:00
parent 141daf4de8
commit 6259be3afa
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -58,12 +58,6 @@ CsrpConnectToServer(
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)) +
sizeof(CSR_PORT_NAME);