From a5fb4117e18cfa334a455ff0ab37ab71ef23dfd2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 23 Apr 2010 21:37:13 +0200 Subject: s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/rpc_server/srv_spoolss_util.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source3') diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index 004427914c..b70090f44b 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -1675,6 +1675,17 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx, } } + if (info2_mask & SPOOLSS_PRINTER_INFO_DRIVERNAME) { + result = winreg_printer_write_sz(tmp_ctx, + winreg_pipe, + &key_hnd, + "Printer Driver", + info2->drivername); + if (!W_ERROR_IS_OK(result)) { + goto done; + } + } + if (info2_mask & SPOOLSS_PRINTER_INFO_LOCATION) { result = winreg_printer_write_sz(tmp_ctx, winreg_pipe, @@ -1999,6 +2010,12 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, &info2->parameters); CHECK_ERROR(result); + result = winreg_enumval_to_sz(info2, + v, + "Printer Driver", + &info2->drivername); + CHECK_ERROR(result); + result = winreg_enumval_to_dword(info2, v, "Attributes", -- cgit