From: Günther Deschner Date: Thu, 3 Dec 2015 14:24:29 +0000 (+0100) Subject: werror: replace WERR_OBJECT_PATH_INVALID with WERR_BAD_PATHNAME in source3/registry... X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=a2cacf1b49a396f57c99b79309097d6476a3e000;p=metze%2Fsamba%2Fwip.git werror: replace WERR_OBJECT_PATH_INVALID with WERR_BAD_PATHNAME in source3/registry/reg_api_regf.c Guenther Signed-off-by: Guenther Deschner Reviewed-by: Jeremy Allison --- diff --git a/source3/registry/reg_api_regf.c b/source3/registry/reg_api_regf.c index 16a3fada0f3a..b83404c55e33 100644 --- a/source3/registry/reg_api_regf.c +++ b/source3/registry/reg_api_regf.c @@ -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) {