From: Kai Blin Date: Tue, 20 Nov 2007 08:17:05 +0000 (+0100) Subject: r26047: spoolss: OpenPrinterEx with an invalid server/printer name returns WERR_INVAL... X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=7e78dc7cfe695deb2f1f02f03fe00827cded9ce5;p=jelmer%2Fsamba4-debian.git 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. --- diff --git a/source/torture/rpc/spoolss.c b/source/torture/rpc/spoolss.c index 1a145164b..2d343ea1e 100644 --- a/source/torture/rpc/spoolss.c +++ b/source/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)); }