diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 14:03:52 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:21 +0200 |
commit | 6dc35f8f70eee4ae536ea17e4b5cb223cbb4c501 (patch) | |
tree | a3526e764845f50e9d0bf8a567528d5a1a6f4992 | |
parent | 67fbb0462e5ac5a752f990da653e0492f2e12166 (diff) | |
download | samba-6dc35f8f70eee4ae536ea17e4b5cb223cbb4c501.tar.gz samba-6dc35f8f70eee4ae536ea17e4b5cb223cbb4c501.tar.bz2 samba-6dc35f8f70eee4ae536ea17e4b5cb223cbb4c501.zip |
s3: Lift the smbd_messaging_context from enum_all_printers_info_1_local
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 32769f9b12..03b4ba043c 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -3941,13 +3941,13 @@ static WERROR enum_all_printers_info_1(TALLOC_CTX *mem_ctx, static WERROR enum_all_printers_info_1_local(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, union spoolss_PrinterInfo **info, uint32_t *count) { DEBUG(4,("enum_all_printers_info_1_local\n")); - return enum_all_printers_info_1(mem_ctx, server_info, - smbd_messaging_context(), + return enum_all_printers_info_1(mem_ctx, server_info, msg_ctx, PRINTER_ENUM_ICON8, info, count); } @@ -4045,7 +4045,9 @@ static WERROR enumprinters_level1(TALLOC_CTX *mem_ctx, /* Not all the flags are equals */ if (flags & PRINTER_ENUM_LOCAL) { - return enum_all_printers_info_1_local(mem_ctx, server_info, info, count); + return enum_all_printers_info_1_local(mem_ctx, server_info, + smbd_messaging_context(), + info, count); } if (flags & PRINTER_ENUM_NAME) { |