summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/spoolss.c14
1 files changed, 9 insertions, 5 deletions
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;
}