mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
werror: replace WERR_OBJECT_PATH_INVALID with WERR_BAD_PATHNAME in source3/registry/reg_api_regf.c
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
846db3aad0
commit
a2cacf1b49
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user