Author: kai Date: 2007-11-20 09:17:05 +0000 (Tue, 20 Nov 2007) New Revision: 26047
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26047 Log: 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. 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 2007-11-20 01:31:56 UTC (rev 26046) +++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2007-11-20 09:17:05 UTC (rev 26047) @@ -1368,8 +1368,8 @@ 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)); }
