projects
/
gpgme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecedadb
)
slash/backslash conversion
author
Werner Koch
<wk@gnupg.org>
Tue, 30 Jan 2001 17:11:38 +0000
(17:11 +0000)
committer
Werner Koch
<wk@gnupg.org>
Tue, 30 Jan 2001 17:11:38 +0000
(17:11 +0000)
trunk/gpgme/w32-util.c
patch
|
blob
|
history
diff --git
a/trunk/gpgme/w32-util.c
b/trunk/gpgme/w32-util.c
index f1001a68312499db906c6b2ddb8fcbda82497a20..e84285771aec48391e01433dae73811a2f36d33a 100644
(file)
--- 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;