mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
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)
This commit is contained in:
parent
39dec5ee66
commit
e35e41a8f9
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user