mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
643f905891
commit
6e41be1862
@ -306,7 +306,7 @@ WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx,
|
||||
if (!ok) {
|
||||
DEBUG(0, ("Failed to unmarshall GUID for printer %s\n",
|
||||
printer));
|
||||
result = WERR_REG_CORRUPT;
|
||||
result = WERR_REGISTRY_CORRUPT;
|
||||
goto out_ctx_free;
|
||||
}
|
||||
status = GUID_from_string(guid_str, guid);
|
||||
@ -320,14 +320,14 @@ WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx,
|
||||
case REG_BINARY:
|
||||
if (blob.length != sizeof(struct GUID)) {
|
||||
DEBUG(0, ("bad GUID for printer %s\n", printer));
|
||||
result = WERR_REG_CORRUPT;
|
||||
result = WERR_REGISTRY_CORRUPT;
|
||||
goto out_ctx_free;
|
||||
}
|
||||
memcpy(guid, blob.data, sizeof(struct GUID));
|
||||
break;
|
||||
default:
|
||||
DEBUG(0,("GUID value stored as invalid type (%d)\n", type));
|
||||
result = WERR_REG_CORRUPT;
|
||||
result = WERR_REGISTRY_CORRUPT;
|
||||
goto out_ctx_free;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user