1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

werror: removed WERR_NOMEM

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2015-12-03 15:24:20 +01:00 committed by Jeremy Allison
parent dcdfc9937c
commit 3e0b394536
3 changed files with 2 additions and 5 deletions

View File

@ -40,7 +40,6 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_INVALID_PARAM", WERR_INVALID_PARAM },
{ "WERR_NOT_SUPPORTED", WERR_NOT_SUPPORTED },
{ "WERR_DUP_NAME", WERR_DUP_NAME },
{ "WERR_NOMEM", WERR_NOMEM },
{ "WERR_INVALID_NAME", WERR_INVALID_NAME },
{ "WERR_OBJECT_PATH_INVALID", WERR_OBJECT_PATH_INVALID },
{ "WERR_ALREADY_EXISTS", WERR_ALREADY_EXISTS },
@ -2705,7 +2704,6 @@ const struct werror_str_struct dos_err_strs[] = {
{ WERR_ACCESS_DENIED, "Access is denied" },
{ WERR_INVALID_PARAM, "Invalid parameter" },
{ WERR_NOT_SUPPORTED, "Not supported" },
{ WERR_NOMEM, "Out of memory" },
{ WERR_NO_LOGON_SERVERS, "No logon servers found" },
{ WERR_NO_SUCH_LOGON_SESSION, "No such logon session" },
{ WERR_DOMAIN_CONTROLLER_NOT_FOUND, "A domain controller could not be found" },

View File

@ -83,7 +83,6 @@ typedef uint32_t WERROR;
these matter for Samba, primarily in the NT printing code */
#define WERR_OK W_ERROR(0x00000000)
#define WERR_ACCESS_DENIED W_ERROR(0x00000005)
#define WERR_NOMEM W_ERROR(0x00000008)
#define WERR_GENERAL_FAILURE W_ERROR(0x0000001F)
#define WERR_NOT_SUPPORTED W_ERROR(0x00000032)
#define WERR_DUP_NAME W_ERROR(0x00000034)

View File

@ -1754,7 +1754,7 @@ WERROR winreg_get_printer_secdesc(TALLOC_CTX *mem_ctx,
path = winreg_printer_data_keyname(mem_ctx, sharename);
if (path == NULL) {
return WERR_NOMEM;
return WERR_NOT_ENOUGH_MEMORY;
}
result = winreg_get_secdesc(mem_ctx, winreg_handle,
@ -1896,7 +1896,7 @@ WERROR winreg_set_printer_secdesc(TALLOC_CTX *mem_ctx,
path = winreg_printer_data_keyname(mem_ctx, sharename);
if (path == NULL) {
return WERR_NOMEM;
return WERR_NOT_ENOUGH_MEMORY;
}
result = winreg_set_secdesc(mem_ctx, winreg_handle,