werror: replace WERR_REG_FILE_INVALID with WERR_NOT_REGISTRY_FILE 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 ea6371f452df55f2c6968083788c2682fb9bee43..16a3fada0f3a2bab456efbd8ebf4fdda0523e05e 100644 (file)
@@ -148,7 +148,7 @@ static WERROR restore_registry_key(struct registry_key_handle *krecord,
 
        if (!(rootkey = regfio_rootkey(regfile))) {
                regfio_close(regfile);
-               return WERR_REG_FILE_INVALID;
+               return WERR_NOT_REGISTRY_FILE;
        }
 
        result = reg_load_tree(regfile, krecord->name, rootkey);