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

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

index 16a3fada0f3a2bab456efbd8ebf4fdda0523e05e..b83404c55e337b55ad352d77459b183591c12c57 100644 (file)
@@ -188,7 +188,7 @@ static WERROR reg_write_tree(REGF_FILE *regfile, const char *keypath,
        }
 
        if (!keypath) {
-               return WERR_OBJECT_PATH_INVALID;
+               return WERR_BAD_PATHNAME;
        }
 
        /* split up the registry key path */
@@ -198,7 +198,7 @@ static WERROR reg_write_tree(REGF_FILE *regfile, const char *keypath,
                return WERR_NOT_ENOUGH_MEMORY;
        }
        if (!reg_split_key(key_tmp, &parentpath, &keyname)) {
-               return WERR_OBJECT_PATH_INVALID;
+               return WERR_BAD_PATHNAME;
        }
 
        if (!keyname) {