werror: replace WERR_REG_CORRUPT with WERR_REGISTRY_CORRUPT in source3/printing/nt_pr...
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:28 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:23 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/nt_printing_ads.c

index ac77c2951027350929bb255c1475d4ca88208d4b..290d14dc6c741deef5b72ced5cad986e222b8537 100644 (file)
@@ -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;
        }