diff options
author | Werner Koch <[email protected]> | 2001-01-30 17:11:38 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-01-30 17:11:38 +0000 |
commit | 3a8df5d4692351ae0c37a0a36bd93e3d8e50119e (patch) | |
tree | 8b1e3b406b7d360b57522e018f2ec5a6d8961be6 | |
parent | Lookup the path in the Registry (diff) | |
download | gpgme-3a8df5d4692351ae0c37a0a36bd93e3d8e50119e.tar.gz gpgme-3a8df5d4692351ae0c37a0a36bd93e3d8e50119e.zip |
slash/backslash conversion
-rw-r--r-- | gpgme/w32-util.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gpgme/w32-util.c b/gpgme/w32-util.c index f1001a68..e8428577 100644 --- a/gpgme/w32-util.c +++ b/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; |