Fix switching of hives in regshell (#5254)
[ira/wip.git] / source / lib / registry / tools / regshell.c
index 93f28f3e5a803766541a399ab53c7610f7941892..d5c506ab31d915655d29205d2a44d9252040522d 100644 (file)
@@ -116,6 +116,9 @@ static WERROR cmd_predef(struct regshell_context *ctx, int argc, char **argv)
                                argv[1], win_errstr(error));
                        return error;
                }
+
+               ctx->path = strupper_talloc(ctx, argv[1]);
+               ctx->current = ret;
        }
 
        return WERR_OK;