From e35e41a8f912007a13c40543e4ab1da371b56d1e Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 20 Nov 2007 09:17:05 +0100 Subject: 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) --- source4/torture/rpc/spoolss.c | 4 ++-- 1 file 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)); } -- cgit