diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-03 10:38:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-03 10:38:13 +0000 |
commit | fbc1f326f445a2826a10155fe0122c779bb1f80e (patch) | |
tree | fe1f9bae2b3f275071654f4e789991df073d9f0d /source3/printing/nt_printing.c | |
parent | 2771d77c6025dd7a1b5fbf2c0f863e334655b323 (diff) | |
download | samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.gz samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.tar.bz2 samba-fbc1f326f445a2826a10155fe0122c779bb1f80e.zip |
more NTSTATUS/WERROR conversion
(This used to be commit ad648c5cd8ebe4be8304379117f403d7673dcbc8)
Diffstat (limited to 'source3/printing/nt_printing.c')
-rw-r--r-- | source3/printing/nt_printing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 8afd5195af..0c3a71c1d6 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3388,18 +3388,18 @@ BOOL get_specific_param(NT_PRINTER_INFO_LEVEL printer, uint32 level, Store a security desc for a printer. ****************************************************************************/ -uint32 nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr) +WERROR nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr) { SEC_DESC_BUF *new_secdesc_ctr = NULL; SEC_DESC_BUF *old_secdesc_ctr = NULL; prs_struct ps; TALLOC_CTX *mem_ctx = NULL; fstring key; - NTSTATUS status; + WERROR status; mem_ctx = talloc_init(); if (mem_ctx == NULL) - return False; + return WERR_NOMEM; /* The old owner and group sids of the security descriptor are not present when new ACEs are added or removed by changing printer @@ -3454,7 +3454,7 @@ uint32 nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr) if (!sec_io_desc_buf("nt_printing_setsec", &new_secdesc_ctr, &ps, 1)) { - status = ERRbadfunc; + status = WERR_BADFUNC; goto out; } @@ -3464,7 +3464,7 @@ uint32 nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr) status = 0; } else { DEBUG(1,("Failed to store secdesc for %s\n", printername)); - status = ERRbadfunc; + status = WERR_BADFUNC; } /* Free malloc'ed memory */ |