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

werror: replace WERR_REG_CORRUPT with WERR_REGISTRY_CORRUPT in source3/printing/nt_printing_ads.c

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:28 +01:00 committed by Jeremy Allison
parent 643f905891
commit 6e41be1862

View File

@ -306,7 +306,7 @@ WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx,
if (!ok) { if (!ok) {
DEBUG(0, ("Failed to unmarshall GUID for printer %s\n", DEBUG(0, ("Failed to unmarshall GUID for printer %s\n",
printer)); printer));
result = WERR_REG_CORRUPT; result = WERR_REGISTRY_CORRUPT;
goto out_ctx_free; goto out_ctx_free;
} }
status = GUID_from_string(guid_str, guid); status = GUID_from_string(guid_str, guid);
@ -320,14 +320,14 @@ WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx,
case REG_BINARY: case REG_BINARY:
if (blob.length != sizeof(struct GUID)) { if (blob.length != sizeof(struct GUID)) {
DEBUG(0, ("bad GUID for printer %s\n", printer)); DEBUG(0, ("bad GUID for printer %s\n", printer));
result = WERR_REG_CORRUPT; result = WERR_REGISTRY_CORRUPT;
goto out_ctx_free; goto out_ctx_free;
} }
memcpy(guid, blob.data, sizeof(struct GUID)); memcpy(guid, blob.data, sizeof(struct GUID));
break; break;
default: default:
DEBUG(0,("GUID value stored as invalid type (%d)\n", type)); DEBUG(0,("GUID value stored as invalid type (%d)\n", type));
result = WERR_REG_CORRUPT; result = WERR_REGISTRY_CORRUPT;
goto out_ctx_free; goto out_ctx_free;
break; break;
} }