Commit baebd3c1 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

plugplay: Use ncacn_np instead of ncalrpc transport.

The ncacn_np should be used when the endpoint is a pipe, ncalrpc should only be used with arbitrary named ports, which we translate into \\pipe\lrpc\xxx pipe names. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 0c88a524
......@@ -1084,7 +1084,7 @@ void pnp_manager_start(void)
{
static const WCHAR driver_nameW[] = {'\\','D','r','i','v','e','r','\\','P','n','p','M','a','n','a','g','e','r',0};
WCHAR endpoint[] = L"\\pipe\\wine_plugplay";
WCHAR protseq[] = L"ncalrpc";
WCHAR protseq[] = L"ncacn_np";
UNICODE_STRING driver_nameU;
RPC_WSTR binding_str;
NTSTATUS status;
......
......@@ -1988,7 +1988,7 @@ struct device_notify_registration
static DWORD WINAPI device_notify_proc( void *arg )
{
WCHAR endpoint[] = L"\\pipe\\wine_plugplay";
WCHAR protseq[] = L"ncalrpc";
WCHAR protseq[] = L"ncacn_np";
RPC_WSTR binding_str;
DWORD err = ERROR_SUCCESS;
struct device_notify_registration *registration;
......
......@@ -20,6 +20,7 @@ import "wtypes.idl";
[
uuid(57c680ac-7bce-4f39-97fd-ffea566754d5),
endpoint("ncacn_np:[\\pipe\\wine_plugplay]"),
implicit_handle(handle_t plugplay_binding_handle)
]
interface plugplay
......
......@@ -200,7 +200,7 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_
static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
{
unsigned char endpoint[] = "\\pipe\\wine_plugplay";
unsigned char protseq[] = "ncalrpc";
unsigned char protseq[] = "ncacn_np";
SERVICE_STATUS status;
RPC_STATUS err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment