********************************************************************/
static WERROR construct_printer_info7(TALLOC_CTX *mem_ctx,
********************************************************************/
static WERROR construct_printer_info7(TALLOC_CTX *mem_ctx,
Printer_entry *print_hnd,
struct spoolss_PrinterInfo7 *r,
int snum)
Printer_entry *print_hnd,
struct spoolss_PrinterInfo7 *r,
int snum)
- if (is_printer_published(mem_ctx, server_info,
- smbd_messaging_context(),
+ if (is_printer_published(mem_ctx, server_info, msg_ctx,
print_hnd->servername,
lp_servicename(snum), &guid, NULL)) {
r->guid = talloc_strdup_upper(mem_ctx, GUID_string2(mem_ctx, &guid));
print_hnd->servername,
lp_servicename(snum), &guid, NULL)) {
r->guid = talloc_strdup_upper(mem_ctx, GUID_string2(mem_ctx, &guid));