Author: ekohl
Date: Fri Oct 31 17:21:34 2008
New Revision: 37117
URL:
http://svn.reactos.org/svn/reactos?rev=37117&view=rev
Log:
Pass machine name to RpcStringBindingComposeA/W properly.
Modified:
trunk/reactos/dll/win32/advapi32/sec/lsa.c
trunk/reactos/dll/win32/advapi32/service/scm.c
Modified: trunk/reactos/dll/win32/advapi32/sec/lsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/lsa…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] Fri Oct 31 17:21:34 2008
@@ -26,9 +26,9 @@
TRACE("PLSAPR_SERVER_NAME_bind() called\n");
- status = RpcStringBindingComposeW(pszSystemName,
+ status = RpcStringBindingComposeW(NULL,
L"ncacn_np",
- NULL,
+ pszSystemName,
L"\\pipe\\lsarpc",
NULL,
&pszStringBinding);
Modified: trunk/reactos/dll/win32/advapi32/service/scm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] Fri Oct 31 17:21:34 2008
@@ -30,9 +30,9 @@
TRACE("SVCCTL_HANDLEA_bind() called\n");
- status = RpcStringBindingComposeA((UCHAR *)szMachineName,
+ status = RpcStringBindingComposeA(NULL,
(UCHAR *)"ncacn_np",
- NULL,
+ (UCHAR *)szMachineName,
(UCHAR *)"\\pipe\\ntsvcs",
NULL,
(UCHAR **)&pszStringBinding);
@@ -85,9 +85,9 @@
TRACE("SVCCTL_HANDLEW_bind() called\n");
- status = RpcStringBindingComposeW(szMachineName,
+ status = RpcStringBindingComposeW(NULL,
L"ncacn_np",
- NULL,
+ szMachineName,
L"\\pipe\\ntsvcs",
NULL,
&pszStringBinding);