From 97ffd709f85ca0ecd101aac614fea19151394677 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Mon, 13 Apr 2009 15:42:32 +0200 Subject: [PATCH] s3-spoolss: use enumprinterdrivers_level() for level 3 enum. Guenther --- source3/rpc_server/srv_spoolss_nt.c | 73 +++-------------------------- 1 file changed, 6 insertions(+), 67 deletions(-) diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 6457cc0c187..faa155dc0fd 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6673,6 +6673,10 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx, result = fill_printer_driver_info2(info, &info[count+i].info2, &driver, servername); break; + case 3: + result = fill_printer_driver_info3(info, &info[count+i].info3, + &driver, servername); + break; default: result = WERR_UNKNOWN_LEVEL; break; @@ -6741,73 +6745,8 @@ static WERROR enumprinterdrivers_level3(TALLOC_CTX *mem_ctx, union spoolss_DriverInfo **info_p, uint32_t *count) { - int i; - int ndrivers; - uint32_t version; - fstring *list = NULL; - union spoolss_DriverInfo *info = NULL; - NT_PRINTER_DRIVER_INFO_LEVEL driver; - WERROR result = WERR_OK; - - *count = 0; - - for (version=0; version