diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 14:04:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:21 +0200 |
commit | 2c0e63067b61461368fe7b725b732274101ecd95 (patch) | |
tree | d23cf1d8c9f5301535a44237c014910e00c62bd0 /source3/rpc_server | |
parent | 6dc35f8f70eee4ae536ea17e4b5cb223cbb4c501 (diff) | |
download | samba-2c0e63067b61461368fe7b725b732274101ecd95.tar.gz samba-2c0e63067b61461368fe7b725b732274101ecd95.tar.bz2 samba-2c0e63067b61461368fe7b725b732274101ecd95.zip |
s3: Lift the smbd_messaging_context from enum_all_printers_info_1_name
Diffstat (limited to 'source3/rpc_server')
-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 03b4ba043c..03c04d2df8 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -3957,6 +3957,7 @@ static WERROR enum_all_printers_info_1_local(TALLOC_CTX *mem_ctx, static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, const char *name, union spoolss_PrinterInfo **info, uint32_t *count) @@ -3973,8 +3974,7 @@ static WERROR enum_all_printers_info_1_name(TALLOC_CTX *mem_ctx, return WERR_INVALID_NAME; } - 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); } @@ -4051,7 +4051,9 @@ static WERROR enumprinters_level1(TALLOC_CTX *mem_ctx, } if (flags & PRINTER_ENUM_NAME) { - return enum_all_printers_info_1_name(mem_ctx, server_info, name, info, count); + return enum_all_printers_info_1_name(mem_ctx, server_info, + smbd_messaging_context(), + name, info, count); } if (flags & PRINTER_ENUM_NETWORK) { |