summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-10 05:41:53 +0000
committerTim Potter <tpot@samba.org>2001-08-10 05:41:53 +0000
commit047a7c88d7d004f1581f585dd31caea388ab6f0d (patch)
treefbf0f8b759fe56348d89069ea88290d367f49158 /source3/rpcclient/cmd_spoolss.c
parent7d9358cf58d407623c0b7c6164976a33bbbbff64 (diff)
downloadsamba-047a7c88d7d004f1581f585dd31caea388ab6f0d.tar.gz
samba-047a7c88d7d004f1581f585dd31caea388ab6f0d.tar.bz2
samba-047a7c88d7d004f1581f585dd31caea388ab6f0d.zip
Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of 32-bit nt status codes. (This used to be commit 5f5ed41ee872d842e944cd2e84a80de714ad4385)
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;