[PATCH 4/5] reg: Print a new line when recursing and the current key has no registry values

Hugh McMaster hugh.mcmaster at outlook.com
Wed Apr 28 04:19:31 CDT 2021


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 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);
 }
-- 
2.31.1




More information about the wine-devel mailing list