svn commit: samba r7340 - in branches/SAMBA_4_0/source/torture/rpc:
.
metze at samba.org
metze at samba.org
Mon Jun 6 14:56:52 GMT 2005
Author: metze
Date: 2005-06-06 14:56:51 +0000 (Mon, 06 Jun 2005)
New Revision: 7340
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7340
Log:
fix the build
and some more error checks
metze
Modified:
branches/SAMBA_4_0/source/torture/rpc/spoolss.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2005-06-06 14:37:31 UTC (rev 7339)
+++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2005-06-06 14:56:51 UTC (rev 7340)
@@ -1046,15 +1046,15 @@
}
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 @@
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;
}
More information about the samba-cvs
mailing list