summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-05-04 11:37:42 +0200
committerGünther Deschner <gd@samba.org>2010-05-05 17:32:59 +0200
commitc95a79aae9f67dd476b7f6d1d12ad574b54c15ba (patch)
tree34554348e0a731580d13d6ead9dc94cd0db280fd /source3
parent053ed7d554fe8822ceabda48968da5a87030104a (diff)
downloadsamba-c95a79aae9f67dd476b7f6d1d12ad574b54c15ba.tar.gz
samba-c95a79aae9f67dd476b7f6d1d12ad574b54c15ba.tar.bz2
samba-c95a79aae9f67dd476b7f6d1d12ad574b54c15ba.zip
s3-spoolss: Added a sharename arg to winreg_update_printer.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c4
-rw-r--r--source3/rpc_server/srv_spoolss_util.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index f04e5dec97..3ddf7eb715 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -1536,6 +1536,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
result = winreg_update_printer(tmp_ctx,
server_info,
+ sharename,
info2_mask,
info2,
devmode,
@@ -1557,6 +1558,7 @@ done:
WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ const char *sharename,
uint32_t info2_mask,
struct spoolss_SetPrinterInfo2 *info2,
struct spoolss_DeviceMode *devmode,
@@ -1576,7 +1578,7 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
return WERR_NOMEM;
}
- path = winreg_printer_data_keyname(tmp_ctx, info2->sharename);
+ path = winreg_printer_data_keyname(tmp_ctx, sharename);
if (path == NULL) {
TALLOC_FREE(tmp_ctx);
return WERR_NOMEM;
diff --git a/source3/rpc_server/srv_spoolss_util.h b/source3/rpc_server/srv_spoolss_util.h
index f883f20a45..fbb34bb158 100644
--- a/source3/rpc_server/srv_spoolss_util.h
+++ b/source3/rpc_server/srv_spoolss_util.h
@@ -85,6 +85,8 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
*
* @param[in] server_info The server supplied session info.
*
+ * @param[in] sharename The share name.
+ *
* @param[in] info2_mask A bitmask which defines which values should be set.
*
* @param[in] info2 A SetPrinterInfo2 structure with the data to set.
@@ -98,6 +100,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
*/
WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ const char *sharename,
uint32_t info2_mask,
struct spoolss_SetPrinterInfo2 *info2,
struct spoolss_DeviceMode *devmode,