summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-11-20 09:17:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:46 +0100
commite35e41a8f912007a13c40543e4ab1da371b56d1e (patch)
tree81e1ca7e5c1488d7427a09d0eb2f0422b2743642 /source4/torture/rpc
parent39dec5ee6645c8f3be3d4dac78efea47df61b606 (diff)
downloadsamba-e35e41a8f912007a13c40543e4ab1da371b56d1e.tar.gz
samba-e35e41a8f912007a13c40543e4ab1da371b56d1e.tar.bz2
samba-e35e41a8f912007a13c40543e4ab1da371b56d1e.zip
r26047: spoolss: OpenPrinterEx with an invalid server/printer name returns WERR_INVALID_PARAM
This is observed against a Win2k3 DC, and different tothe WERR_INVALID_PRINTER_NAME returned by OpenPrinter. (This used to be commit 7e78dc7cfe695deb2f1f02f03fe00827cded9ce5)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 1a145164b7..2d343ea1ed 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -1368,8 +1368,8 @@ static bool test_OpenPrinter_badname(struct torture_context *tctx,
status = dcerpc_spoolss_OpenPrinterEx(p, tctx, &opEx);
torture_assert_ntstatus_ok(tctx, status, "OpenPrinterEx failed");
- if (!W_ERROR_EQUAL(WERR_INVALID_PRINTER_NAME,opEx.out.result)) {
- torture_comment(tctx, "OpenPrinterEx(%s) unexpected result[%s] should be WERR_INVALID_PRINTER_NAME\n",
+ if (!W_ERROR_EQUAL(WERR_INVALID_PARAM,opEx.out.result)) {
+ torture_comment(tctx, "OpenPrinterEx(%s) unexpected result[%s] should be WERR_INVALID_PARAM\n",
name, win_errstr(opEx.out.result));
}