From eed5e03043f851c299a572f5979f6c52d51b1d11 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 30 Jun 2000 01:07:26 +0000 Subject: Fixed oops with missing MANGLE_PATH directive. Jeremy. (This used to be commit fb6b5a964512dec37f85f8de39c0c06f702aabbd) --- source3/rpc_server/srv_spoolss_nt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 7259ccc428..79f6030414 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2605,7 +2605,11 @@ static void fill_printer_driver_info_3(DRIVER_INFO_3 *info, get_short_archi(short_archi, architecture); +#if MANGLE_DRIVER_PATH snprintf(where,sizeof(where)-1,"\\\\%s\\print$\\%s\\%s\\", servername, short_archi, driver.info_3->name); +#else + snprintf(where,sizeof(where)-1,"\\\\%s\\print$\\%s\\", servername, short_archi); +#endif info->version=driver.info_3->cversion; @@ -3502,7 +3506,7 @@ static uint32 enumprinterdrivers_level3(fstring *list, fstring servername, fstri /* check the required size. */ for (i=0; i<*returned; i++) { DEBUGADD(6,("adding driver [%d]'s size\n",i)); - *needed += spoolss_size_printer_driver_info_3(&(driver_info_3[i])); + *needed += spoolss_size_printer_driver_info_3(&driver_info_3[i]); } if (!alloc_buffer_size(buffer, *needed)) { @@ -3513,7 +3517,7 @@ static uint32 enumprinterdrivers_level3(fstring *list, fstring servername, fstri /* fill the buffer with the form structures */ for (i=0; i<*returned; i++) { DEBUGADD(6,("adding form [%d] to buffer\n",i)); - new_smb_io_printer_driver_info_3("", buffer, &(driver_info_3[i]), 0); + new_smb_io_printer_driver_info_3("", buffer, &driver_info_3[i], 0); } for (i=0; i<*returned; i++) -- cgit