[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

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);