summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-19 02:29:16 +0100
committerGünther Deschner <gd@samba.org>2008-02-19 03:12:29 +0100
commitcea7718db8defbf418f06b78a20ff57750b5346f (patch)
treebb744af11a5540ef6620d64ce9d85ec8146fda1c /source3
parentf8b0242ca03b99186010f95378410e1acde3e8b0 (diff)
downloadsamba-cea7718db8defbf418f06b78a20ff57750b5346f.tar.gz
samba-cea7718db8defbf418f06b78a20ff57750b5346f.tar.bz2
samba-cea7718db8defbf418f06b78a20ff57750b5346f.zip
Use rpccli_svcctl_StartServiceW() in net.
Guenther (This used to be commit 5ca4358c1a2c13b316df7cc07d8ca5b820c79988)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_service.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 74848b23a4..77e2ee4ac3 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -517,8 +517,13 @@ static NTSTATUS rpc_service_start_internal(const DOM_SID *domain_sid,
/* get the status */
- result = rpccli_svcctl_start_service(pipe_hnd, mem_ctx, &hService, NULL, 0 );
- if ( !W_ERROR_IS_OK(result) ) {
+ status = rpccli_svcctl_StartServiceW(pipe_hnd, mem_ctx,
+ &hService,
+ 0,
+ NULL,
+ &result);
+
+ if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result) ) {
d_fprintf(stderr, "Query status request failed. [%s]\n", dos_errstr(result));
goto done;
}