From d99f4f004ca46e4c0f2e60a231a14708a128f0f2 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 31 May 2007 17:24:30 +0000 Subject: r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26 (This used to be commit 0b1bc3521fac52f3164b6cc9e053abc3ceabf5e7) --- source3/libmsrpc/cac_svcctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/libmsrpc') diff --git a/source3/libmsrpc/cac_svcctl.c b/source3/libmsrpc/cac_svcctl.c index 3d3034df15..71cdfba73e 100644 --- a/source3/libmsrpc/cac_svcctl.c +++ b/source3/libmsrpc/cac_svcctl.c @@ -91,7 +91,6 @@ int cac_SvcClose( CacServerHandle * hnd, TALLOC_CTX * mem_ctx, POLICY_HND * scm_hnd ) { struct rpc_pipe_client *pipe_hnd = NULL; - WERROR err; if ( !hnd ) return CAC_FAILURE; @@ -112,8 +111,7 @@ int cac_SvcClose( CacServerHandle * hnd, TALLOC_CTX * mem_ctx, return CAC_FAILURE; } - err = rpccli_svcctl_close_service( pipe_hnd, mem_ctx, scm_hnd ); - hnd->status = werror_to_ntstatus( err ); + hnd->status = rpccli_svcctl_CloseServiceHandle( pipe_hnd, mem_ctx, scm_hnd ); if ( !NT_STATUS_IS_OK( hnd->status ) ) return CAC_FAILURE; -- cgit