reg: Print a new line when recursing and the current key has no registry values.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2021-04-28 19:19:31 +10:00 committed by Alexandre Julliard
parent ec0a799ea8
commit 35ccb87a76
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ static int query_all(HKEY hkey, WCHAR *path, BOOL recurse, BOOL recursing)
free(data);
free(value_name);
if (i || recurse)
if (i || recursing)
output_string(newlineW);
subkey_name = malloc(MAX_SUBKEY_LEN * sizeof(WCHAR));

View File

@ -286,7 +286,7 @@ static void test_query(void)
read_reg_output("reg query HKCU\\" KEY_BASE " /s", buf, sizeof(buf), &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
compare_query(buf, test8b, FALSE, TODO_REG_COMPARE);
compare_query(buf, test8b, FALSE, 0);
delete_tree(HKEY_CURRENT_USER, KEY_BASE);
}