Hugh McMaster : reg/tests: Output "(Default)" when referring to the default registry value.
Alexandre Julliard
julliard at winehq.org
Thu Jun 15 15:34:19 CDT 2017
Module: wine
Branch: master
Commit: c882a064299a0ad39f6c91144138858961f903c8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c882a064299a0ad39f6c91144138858961f903c8
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Thu Jun 15 11:58:21 2017 +0000
reg/tests: Output "(Default)" when referring to the default registry value.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/tests/reg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index d285910..36ec730 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -88,7 +88,7 @@ static void verify_reg_nonexist_(unsigned line, HKEY hkey, const char *value)
err = RegQueryValueExA(hkey, value, NULL, NULL, NULL, NULL);
lok(err == ERROR_FILE_NOT_FOUND, "registry value '%s' shouldn't exist; got %d, expected 2\n",
- value, err);
+ (value && *value) ? value : "(Default)", err);
}
#define verify_key_exist(k,s) verify_key_exist_(__LINE__,k,s)
More information about the wine-cvs
mailing list