From f325c342031d11d6133d417bdf57d918f4f10981 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 13 Apr 2009 15:31:52 +0200 Subject: s3-spoolss: use enumprinterdrivers_level() for level 1 enum. Guenther --- source3/rpc_server/srv_spoolss_nt.c | 74 ++++--------------------------------- 1 file changed, 7 insertions(+), 67 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 4102a1c894..e90b1b9116 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6664,6 +6664,11 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx, } switch (level) { + case 1: + result = fill_printer_driver_info1(info, &info[count+i].info1, + &driver, servername, + architecture); + break; default: result = WERR_UNKNOWN_LEVEL; break; @@ -6704,73 +6709,8 @@ static WERROR enumprinterdrivers_level1(TALLOC_CTX *mem_ctx, union spoolss_DriverInfo **info_p, uint32_t *count) { - int i; - int ndrivers; - uint32_t version; - fstring *list = NULL; - NT_PRINTER_DRIVER_INFO_LEVEL driver; - union spoolss_DriverInfo *info = NULL; - WERROR result = WERR_OK; - - *count = 0; - - for (version=0; version