diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-06-06 14:56:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:44 -0500 |
commit | 6484698ee4ad961e2485816fb6d7fb2aa18fbffd (patch) | |
tree | cc2b1ce479e95fa95be1a9064532a755dc6c6a14 /source4 | |
parent | 198241adc21657f59e58de4a053a1e2218f05234 (diff) | |
download | samba-6484698ee4ad961e2485816fb6d7fb2aa18fbffd.tar.gz samba-6484698ee4ad961e2485816fb6d7fb2aa18fbffd.tar.bz2 samba-6484698ee4ad961e2485816fb6d7fb2aa18fbffd.zip |
r7340: fix the build
and some more error checks
metze
(This used to be commit da6263d4211d85872a232349164e669c33234d6f)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 14 |
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; } |