Signed-off-by: Günther Deschner <gd@samba.org>
result = winreg_update_printer(tmp_ctx,
server_info,
+ sharename,
info2_mask,
info2,
devmode,
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,
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;
*
* @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.
*/
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,