summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient/cmd_spoolss.c')
-rw-r--r--source3/rpcclient/cmd_spoolss.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 0475b4317c..c7d49dedaa 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -758,10 +758,10 @@ static uint32 cmd_spoolss_getdriver(struct cli_state *cli, int argc, char **argv
switch (result)
{
- case NT_STATUS_NOPROBLEMO:
+ case ERRsuccess:
break;
- case ERROR_UNKNOWN_PRINTER_DRIVER:
+ case ERRunknownprinterdriver:
continue;
default:
@@ -799,7 +799,7 @@ static uint32 cmd_spoolss_getdriver(struct cli_state *cli, int argc, char **argv
cli_nt_session_close (cli);
talloc_destroy(mem_ctx);
- if (result==ERROR_UNKNOWN_PRINTER_DRIVER)
+ if (result==ERRunknownprinterdriver)
return NT_STATUS_NOPROBLEMO;
else
return result;
@@ -893,8 +893,8 @@ static uint32 cmd_spoolss_enum_drivers(struct cli_state *cli, int argc, char **a
cli_nt_session_close (cli);
talloc_destroy(mem_ctx);
- if (result==ERROR_UNKNOWN_PRINTER_DRIVER)
- return NT_STATUS_NOPROBLEMO;
+ if (result==ERRunknownprinterdriver)
+ return ERRsuccess;
else
return result;