Hugh McMaster : reg: Print a new line when recursing and the current key has no registry values.
Alexandre Julliard
julliard at winehq.org
Wed Apr 28 16:18:47 CDT 2021
Module: wine
Branch: master
Commit: 35ccb87a767394ea3054c8890ad7b245e431290d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=35ccb87a767394ea3054c8890ad7b245e431290d
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Wed Apr 28 19:19:31 2021 +1000
reg: Print a new line when recursing and the current key has no registry values.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/query.c | 2 +-
programs/reg/tests/query.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/reg/query.c b/programs/reg/query.c
index 4af6c7f5449..66e54548688 100644
--- a/programs/reg/query.c
+++ b/programs/reg/query.c
@@ -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));
diff --git a/programs/reg/tests/query.c b/programs/reg/tests/query.c
index 4ccbab58cb8..76186794f5e 100644
--- a/programs/reg/tests/query.c
+++ b/programs/reg/tests/query.c
@@ -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);
}
More information about the wine-cvs
mailing list