-@@ -239,6 +260,7 @@ static char *ncalrpc_pipe_name(const cha
- static RPC_STATUS rpcrt4_ncalrpc_open(RpcConnection* Connection)
- {
- RpcConnection_np *npc = (RpcConnection_np *) Connection;
-+ static const char prefix[] = "\\\\.\\pipe\\lrpc\\";
- RPC_STATUS r;
- LPSTR pname;
-
-@@ -246,7 +268,10 @@ static RPC_STATUS rpcrt4_ncalrpc_open(Rp
- if (npc->pipe)
- return RPC_S_OK;
-
-- pname = ncalrpc_pipe_name(Connection->Endpoint);
-+ /* protseq=ncalrpc: supposed to use NT LPC ports,
-+ * but we'll implement it with named pipes for now */
-+ pname = I_RpcAllocate(strlen(prefix) + strlen(Connection->Endpoint) + 1);
-+ strcat(strcpy(pname, prefix), Connection->Endpoint);
- r = rpcrt4_conn_open_pipe(Connection, pname, TRUE);
- I_RpcFree(pname);
-
-@@ -255,6 +280,7 @@ static RPC_STATUS rpcrt4_ncalrpc_open(Rp
-
- static RPC_STATUS rpcrt4_protseq_ncalrpc_open_endpoint(RpcServerProtseq* protseq, const char *endpoint)
- {
-+ static const char prefix[] = "\\\\.\\pipe\\lrpc\\";
- RPC_STATUS r;
- LPSTR pname;
- RpcConnection *Connection;
-@@ -275,7 +301,10 @@ static RPC_STATUS rpcrt4_protseq_ncalrpc
- if (r != RPC_S_OK)
- return r;
-
-- pname = ncalrpc_pipe_name(Connection->Endpoint);
-+ /* protseq=ncalrpc: supposed to use NT LPC ports,
-+ * but we'll implement it with named pipes for now */
-+ pname = I_RpcAllocate(strlen(prefix) + strlen(Connection->Endpoint) + 1);
-+ strcat(strcpy(pname, prefix), Connection->Endpoint);
- r = rpcrt4_conn_create_pipe(Connection, pname);
- I_RpcFree(pname);
-
-@@ -301,15 +330,64 @@ static char *ncacn_pipe_name(const char