1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Use rpccli_svcctl_StartServiceW() in net.

Guenther
(This used to be commit 5ca4358c1a)
This commit is contained in:
Günther Deschner 2008-02-19 02:29:16 +01:00
parent f8b0242ca0
commit cea7718db8

View File

@ -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;
}