summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-23 21:37:13 +0200
committerGünther Deschner <gd@samba.org>2010-05-05 17:32:33 +0200
commita5fb4117e18cfa334a455ff0ab37ab71ef23dfd2 (patch)
tree40796cb3ce70160436c137865ef65c59aa0dd5d4 /source3/rpc_server
parent6659a0fe92ce67ff5edab1618d8809e745ab6354 (diff)
downloadsamba-a5fb4117e18cfa334a455ff0ab37ab71ef23dfd2.tar.gz
samba-a5fb4117e18cfa334a455ff0ab37ab71ef23dfd2.tar.bz2
samba-a5fb4117e18cfa334a455ff0ab37ab71ef23dfd2.zip
s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c17
1 files changed, 17 insertions, 0 deletions
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",