w32: Try to locate gpg in the gpgme installation dir.
authorWerner Koch <wk@gnupg.org>
Fri, 2 Aug 2013 10:48:30 +0000 (12:48 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 2 Aug 2013 10:48:30 +0000 (12:48 +0200)
commit3881ea4e83d1533ef497b7332398fc1850e29205
treebc1818977259fd898f47e117c38d109cb9fd6c95
parent393a9471f2f3ac0a5b14f3534a5bfc7ffe948567
w32: Try to locate gpg in the gpgme installation dir.

* src/w32-util.c (my_hmodule): New.
(wchar_to_utf8): New.
(DllMain): New.
(_gpgme_get_inst_dir): New.
(find_program_in_dir): New.
(find_program_in_inst_dir): Add arg INST_DIR.
(_gpgme_get_gpg_path): Get inst_dir before acquiring the lock.
(_gpgme_get_gpgconf_path): Ditto.
(_gpgme_get_g13_path): Ditto.
(_gpgme_get_w32spawn_path): Ditto.
src/w32-util.c