summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-26 22:09:22 +0000
committerJeremy Allison <jra@samba.org>2000-10-26 22:09:22 +0000
commit9a8749d33aebdb4b5cb705cf250012bfa8cf9238 (patch)
tree4ee2171e4a6284bdd7415a0931b0a2e59870691c /source3/printing
parentb5ac72cc646a981469ee65305da83f273c4cd093 (diff)
downloadsamba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.tar.gz
samba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.tar.bz2
samba-9a8749d33aebdb4b5cb705cf250012bfa8cf9238.zip
Added John Reillys patch for error code returns from clean_up_printer_driver_strunct()
calls. Jeremy. (This used to be commit f81a2a03bf435e65e7484ab021f86a8a4f62b656)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 9d4a7f2030..48b61ca781 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -513,7 +513,7 @@ static uint32 clean_up_driver_struct_level_3(NT_PRINTER_DRIVER_INFO_LEVEL_3 *dri
*/
if ((driver->cversion = get_correct_cversion(architecture,
driver->driverpath)) == -1)
- return ERROR_INVALID_PARAMETER; /* Not the best error. Fix JRR */
+ return NT_STATUS_FILE_INVALID; /* Not the best error. Fix JRR */
return NT_STATUS_NO_PROBLEMO;
}
@@ -576,30 +576,32 @@ static uint32 clean_up_driver_struct_level_6(NT_PRINTER_DRIVER_INFO_LEVEL_6 *dri
*/
if ((driver->version = get_correct_cversion(architecture,
driver->driverpath)) == -1)
- return ERROR_INVALID_PARAMETER; /* Not the best error. Fix JRR */
+ return NT_STATUS_FILE_INVALID; /* Not the best error. Fix JRR */
return NT_STATUS_NO_PROBLEMO;
}
/****************************************************************************
****************************************************************************/
-void clean_up_driver_struct(NT_PRINTER_DRIVER_INFO_LEVEL driver_abstract, uint32 level)
+uint32 clean_up_driver_struct(NT_PRINTER_DRIVER_INFO_LEVEL driver_abstract, uint32 level)
{
switch (level) {
case 3:
{
NT_PRINTER_DRIVER_INFO_LEVEL_3 *driver;
driver=driver_abstract.info_3;
- clean_up_driver_struct_level_3(driver);
+ return clean_up_driver_struct_level_3(driver);
break;
}
case 6:
{
NT_PRINTER_DRIVER_INFO_LEVEL_6 *driver;
driver=driver_abstract.info_6;
- clean_up_driver_struct_level_6(driver);
+ return clean_up_driver_struct_level_6(driver);
break;
}
+ default:
+ return ERROR_INVALID_PARAMETER;
}
}