From 8c665f6da62f7b181bc975212ec5e486af401a44 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Aug 2010 14:32:37 +0200 Subject: s3: Lift the smbd_messaging_context from store_printer_guid --- source3/printing/nt_printing_ads.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index 316cf6c24a..78535a89f6 100644 --- a/source3/printing/nt_printing_ads.c +++ b/source3/printing/nt_printing_ads.c @@ -30,7 +30,8 @@ /***************************************************************** ****************************************************************/ -static void store_printer_guid(const char *printer, struct GUID guid) +static void store_printer_guid(struct messaging_context *msg_ctx, + const char *printer, struct GUID guid) { TALLOC_CTX *tmp_ctx; struct auth_serversupplied_info *server_info = NULL; @@ -68,8 +69,7 @@ static void store_printer_guid(const char *printer, struct GUID guid) goto done; } - result = winreg_set_printer_dataex(tmp_ctx, server_info, - smbd_messaging_context(), + result = winreg_set_printer_dataex(tmp_ctx, server_info, msg_ctx, printer, SPOOL_DSSPOOLER_KEY, "objectGUID", REG_SZ, blob.data, blob.length); @@ -188,7 +188,7 @@ static WERROR nt_printer_publish_ads(ADS_STRUCT *ads, ZERO_STRUCT(guid); ads_pull_guid(ads, res, &guid); ads_msgfree(ads, res); - store_printer_guid(printer, guid); + store_printer_guid(smbd_messaging_context(), printer, guid); } TALLOC_FREE(ctx); -- cgit