diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2015-03-31 10:36:37 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2015-03-31 10:36:37 +0000 |
commit | a9feca3461062a266adf9e240a2f436ca27b4ffb (patch) | |
tree | 6fac9b82265819fa699c8ca5cde56655e4d71afa /plugins/New_GPG/src/main.cpp | |
parent | 3d6f59b3c14b9775a476a98b995b9c443cdeb0d1 (diff) |
new_gpg:
various startup validation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/main.cpp')
-rwxr-xr-x | plugins/New_GPG/src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp index cf37f2482c..8c653b32f8 100755 --- a/plugins/New_GPG/src/main.cpp +++ b/plugins/New_GPG/src/main.cpp @@ -2013,7 +2013,11 @@ void FirstRun() void InitCheck() { {//parse gpg output + TCHAR *current_home = UniGetContactSettingUtf(NULL, szGPGModuleName, "szHomePath", _T("")); + db_set_ts(NULL, szGPGModuleName, "szHomePath", _T("")); //we do not need home for gpg binary validation gpg_valid = isGPGValid(); + db_set_ts(NULL, szGPGModuleName, "szHomePath", current_home); //return current home dir back + mir_free(current_home); bool home_dir_access = false, temp_access = false; TCHAR *home_dir = UniGetContactSettingUtf(NULL, szGPGModuleName, "szHomePath", _T("")); std::wstring test_path = home_dir; |