From 3797d48b76fadb988c40d056751be8671c9e6906 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 29 Sep 2010 04:51:56 +0200 Subject: s3-spoolss: Fix servername/printername handling which turns out to be very important to get right. Guenther --- source3/printing/nt_printing_ads.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/printing/nt_printing_ads.c') diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index 56086c9e89..3ccaeef014 100644 --- a/source3/printing/nt_printing_ads.c +++ b/source3/printing/nt_printing_ads.c @@ -362,7 +362,7 @@ WERROR check_published_printers(struct messaging_context *msg_ctx) } result = winreg_get_printer(tmp_ctx, server_info, msg_ctx, - NULL, lp_servicename(snum), + lp_servicename(snum), &pinfo2); if (!W_ERROR_IS_OK(result)) { continue; @@ -386,7 +386,7 @@ done: bool is_printer_published(TALLOC_CTX *mem_ctx, const struct auth_serversupplied_info *server_info, struct messaging_context *msg_ctx, - char *servername, char *printer, struct GUID *guid, + const char *servername, char *printer, struct GUID *guid, struct spoolss_PrinterInfo2 **info2) { struct spoolss_PrinterInfo2 *pinfo2 = NULL; @@ -397,7 +397,7 @@ bool is_printer_published(TALLOC_CTX *mem_ctx, NTSTATUS status; result = winreg_get_printer(mem_ctx, server_info, msg_ctx, - servername, printer, &pinfo2); + printer, &pinfo2); if (!W_ERROR_IS_OK(result)) { return false; } -- cgit