Pass machine name to RpcStringBindingComposeA/W properly.
authorEric Kohl <eric.kohl@reactos.org>
Fri, 31 Oct 2008 22:21:34 +0000 (22:21 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 31 Oct 2008 22:21:34 +0000 (22:21 +0000)
svn path=/trunk/; revision=37117

reactos/dll/win32/advapi32/sec/lsa.c
reactos/dll/win32/advapi32/service/scm.c

index 9cb5d4b..5a2ebeb 100644 (file)
@@ -26,9 +26,9 @@ PLSAPR_SERVER_NAME_bind(PLSAPR_SERVER_NAME pszSystemName)
 
     TRACE("PLSAPR_SERVER_NAME_bind() called\n");
 
-    status = RpcStringBindingComposeW(pszSystemName,
+    status = RpcStringBindingComposeW(NULL,
                                       L"ncacn_np",
-                                      NULL,
+                                      pszSystemName,
                                       L"\\pipe\\lsarpc",
                                       NULL,
                                       &pszStringBinding);
index beb5be0..6a4f236 100644 (file)
@@ -30,9 +30,9 @@ SVCCTL_HANDLEA_bind(SVCCTL_HANDLEA szMachineName)
 
     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 @@ SVCCTL_HANDLEW_bind(SVCCTL_HANDLEW szMachineName)
 
     TRACE("SVCCTL_HANDLEW_bind() called\n");
 
-    status = RpcStringBindingComposeW(szMachineName,
+    status = RpcStringBindingComposeW(NULL,
                                       L"ncacn_np",
-                                      NULL,
+                                      szMachineName,
                                       L"\\pipe\\ntsvcs",
                                       NULL,
                                       &pszStringBinding);