aboutsummaryrefslogtreecommitdiffstats
path: root/common/t-w32-reg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-08-02 10:25:23 +0000
committerWerner Koch <[email protected]>2022-08-02 12:35:38 +0000
commitea7aba6e605d0469fc5c9cf38bafa7eb46e69c22 (patch)
tree6e7beffb96420905a51b478ed4d0b131cc4da654 /common/t-w32-reg.c
parenttests: Install links for tpm2daemon (diff)
downloadgnupg-ea7aba6e605d0469fc5c9cf38bafa7eb46e69c22.tar.gz
gnupg-ea7aba6e605d0469fc5c9cf38bafa7eb46e69c22.zip
gpgconf: Improve registry dumping.
* common/w32-reg.c (read_w32_reg_string): Add arg r_hklm_fallback and change all callers. (show_configs): Indicate whether the HKLM fallback was used. * tools/gpgconf.c (show_other_registry_entries): Fix the Outlook Addin Registry key. Indicate whether the HKLM fallback was used. -- Note that this is backport from 2.2. The new support there for REG_DWORD needs to be implemented in libgpg-error, though.
Diffstat (limited to 'common/t-w32-reg.c')
-rw-r--r--common/t-w32-reg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/t-w32-reg.c b/common/t-w32-reg.c
index 9665003ea..1a44e385c 100644
--- a/common/t-w32-reg.c
+++ b/common/t-w32-reg.c
@@ -56,7 +56,7 @@ test_read_registry (void)
string2 = read_w32_reg_string
("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion"
- "\\Internet Settings:User Agent");
+ "\\Internet Settings:User Agent", NULL);
if (!string2)
fail (1);
fprintf (stderr, "User agent: %s\n", string2);
@@ -76,7 +76,7 @@ main (int argc, char **argv)
{
if (argc > 1)
{
- char *string = read_w32_reg_string (argv[1]);
+ char *string = read_w32_reg_string (argv[1], NULL);
printf ("%s -> %s\n", argv[1], string? string : "(null)");
xfree (string);
}