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/utilities.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/utilities.cpp')
-rwxr-xr-x | plugins/New_GPG/src/utilities.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp index ef3d0977e8..6fddc89a2e 100755 --- a/plugins/New_GPG/src/utilities.cpp +++ b/plugins/New_GPG/src/utilities.cpp @@ -1129,10 +1129,10 @@ bool isGPGValid() mir_free(tmp); tmp = NULL; TCHAR *path = (TCHAR*)mir_alloc(sizeof(TCHAR)*MAX_PATH); - char *mir_path = (char*)mir_alloc(MAX_PATH); - PathToAbsolute("\\", mir_path); - SetCurrentDirectoryA(mir_path); - tmp = mir_a2t(mir_path); + TCHAR *mir_path = (TCHAR*)mir_alloc(MAX_PATH * sizeof(TCHAR)); + PathToAbsoluteW(_T("\\"), mir_path); + SetCurrentDirectoryW(mir_path); + tmp = mir_tstrdup(mir_path); mir_free(mir_path); //mir_realloc(path, (_tcslen(path)+64)*sizeof(TCHAR)); TCHAR *gpg_path = (TCHAR*)mir_alloc(sizeof(TCHAR)*MAX_PATH); |