From e8b442c964fd01482dcae4ded14f3cc9cf16bda5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Sep 2006 05:36:15 +0000 Subject: r18813: the generated rpccli_ functions give NTSTATUS metze (This used to be commit 4a198cebe37d74437a8d526aff1139f1668bcd37) --- source3/client/client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index a8708a001e..2cc26f4e18 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2726,7 +2726,6 @@ static BOOL browse_host_rpc(BOOL sort) struct rpc_pipe_client *pipe_hnd; TALLOC_CTX *mem_ctx; uint32 enum_hnd = 0; - WERROR werr; union srvsvc_NetShareCtr ctr; int i; uint32 level; @@ -2749,10 +2748,10 @@ static BOOL browse_host_rpc(BOOL sort) level = 1; - werr = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &level, &ctr, + status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, &level, &ctr, 0xffffffff, &numentries, &enum_hnd); - if (!W_ERROR_IS_OK(werr)) { + if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(mem_ctx); cli_rpc_pipe_close(pipe_hnd); return False; -- cgit