git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95998f
)
Use rpccli_svcctl_StartServiceW() in net.
author
Günther Deschner
<gd@samba.org>
Tue, 19 Feb 2008 01:29:16 +0000
(
02:29
+0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 19 Feb 2008 02:12:29 +0000
(
03:12
+0100)
Guenther
source/utils/net_rpc_service.c
patch
|
blob
|
history
diff --git
a/source/utils/net_rpc_service.c
b/source/utils/net_rpc_service.c
index 74848b23a4632fdfeee28aaf2b017cbe66614344..77e2ee4ac38657a9f87c1ce2859717c16749549c 100644
(file)
--- a/
source/utils/net_rpc_service.c
+++ b/
source/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;
}