From 682bba780f0ef7710dcf0bc0782b38936c99ceb1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 30 Jan 2001 17:11:38 +0000 Subject: [PATCH] slash/backslash conversion --- trunk/gpgme/w32-util.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/w32-util.c b/trunk/gpgme/w32-util.c index f1001a6..e842857 100644 --- a/trunk/gpgme/w32-util.c +++ b/trunk/gpgme/w32-util.c @@ -96,8 +96,18 @@ _gpgme_get_gpg_path (void) if (!gpg_program) { gpg_program = read_w32_registry_string ( NULL, "Software\\GNU\\GnuPG", "gpgProgram" ); - if (!gpg_program) + if (gpg_program) { + int i; + + DEBUG1 ("found gpgProgram in registry: `%s'", gpgProgram ); + for (i=0; gpg_program[i]; s++) { + if (gpg_program[i] == '/') + gpg_program[i] == '\\'; + } + } + else { gpg_program = GPG_PATH; + } } return gpg_program; -- 2.26.2