From 6484698ee4ad961e2485816fb6d7fb2aa18fbffd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 6 Jun 2005 14:56:51 +0000 Subject: r7340: fix the build and some more error checks metze (This used to be commit da6263d4211d85872a232349164e669c33234d6f) --- source4/torture/rpc/spoolss.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index a1580b478d..c3df059056 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -1046,15 +1046,15 @@ static BOOL test_GetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, } static BOOL test_SetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, - struct policy_handle *handle, uint32_t job_id, uint32_t command) + struct policy_handle *handle, uint32_t job_id, enum spoolss_JobControl command) { NTSTATUS status; struct spoolss_SetJob r; - r.in.handle = handle; - r.in.job_id = job_id; - r.in.level = 0; - r.in.command = command; + r.in.handle = handle; + r.in.job_id = job_id; + r.in.ctr = NULL; + r.in.command = command; printf("Testing SetJob\n"); @@ -1064,6 +1064,10 @@ static BOOL test_SetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, printf("SetJob failed - %s\n", nt_errstr(status)); return False; } + if (!W_ERROR_IS_OK(r.out.result)) { + printf("SetJob failed - %s\n", win_errstr(r.out.result)); + return False; + } return True; } -- cgit