diff options
-rw-r--r-- | source3/registry/reg_api_regf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_api_regf.c b/source3/registry/reg_api_regf.c index 16a3fada0f3..b83404c55e3 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) { |