Hugh McMaster : reg: Do not print a line break after querying a registry key.
Alexandre Julliard
julliard at winehq.org
Wed Apr 28 16:18:47 CDT 2021
Module: wine
Branch: master
Commit: f32816268ed5715c5bce20daf9bb20aa194a7127
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f32816268ed5715c5bce20daf9bb20aa194a7127
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Wed Apr 28 19:19:29 2021 +1000
reg: Do not print a line break after querying a registry key.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/query.c | 4 ----
programs/reg/tests/query.c | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/programs/reg/query.c b/programs/reg/query.c
index 6485d36db6f..efcd16f8ad5 100644
--- a/programs/reg/query.c
+++ b/programs/reg/query.c
@@ -287,10 +287,6 @@ static int query_all(HKEY hkey, WCHAR *path, BOOL recurse)
}
free(subkey_name);
-
- if (i && !recurse)
- output_string(newlineW);
-
return 0;
}
diff --git a/programs/reg/tests/query.c b/programs/reg/tests/query.c
index 34196c77aa4..a8720da8da1 100644
--- a/programs/reg/tests/query.c
+++ b/programs/reg/tests/query.c
@@ -225,7 +225,7 @@ static void test_query(void)
read_reg_output("reg query HKCU\\" KEY_BASE, buf, sizeof(buf), &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
- compare_query(buf, test3, FALSE, TODO_REG_COMPARE);
+ compare_query(buf, test3, FALSE, 0);
add_value(subkey, "Test3", REG_SZ, "Some string data", 16);
dword = 0xabc;
More information about the wine-cvs
mailing list