From 1f919364f48a35dfd52d825e394a5a9462b1806e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 9 Sep 2002 01:13:27 +0000 Subject: Return WERR_UNKNOWN_LEVEL for getprinterdriver level 6 as we don't know how to decode a printer driver into a DRIVER_INFO_6 structure. (This used to be commit 1338f623c2a1e539ee9ee5fedbaf16baf3eb171e) --- source3/rpc_client/cli_spoolss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index caa2f2901b..448dc7ece5 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -767,6 +767,9 @@ WERROR cli_spoolss_getprinterdriver(struct cli_state *cli, case 3: decode_printer_driver_3(mem_ctx, r.buffer, 1, &ctr->info3); break; + default: + DEBUG(10, ("cli_spoolss_getprinterdriver: unknown info level %d", level)); + return WERR_UNKNOWN_LEVEL; } done: -- cgit