r26047: spoolss: OpenPrinterEx with an invalid server/printer name returns WERR_INVAL...
authorKai Blin <kai@samba.org>
Tue, 20 Nov 2007 08:17:05 +0000 (09:17 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:46 +0000 (05:45 +0100)
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

index 1a145164b7161932203ce26fb4464a636380ec35..2d343ea1edd4e10a786ed4f08a22054a374d723a 100644 (file)
@@ -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));
        }