diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-13 04:37:03 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-13 04:37:03 +0300 |
commit | 0f3c11d305cdf1536408ad248b3efd7e4e131dd9 (patch) | |
tree | 9720874353dbb9e40d8f17475aca850e15b16123 /options.cpp | |
parent | d343c7ed12d993658e62f4a5a3732276a0e627cb (diff) |
modified: main.cpp
modified: options.cpp
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp index 0039b39..3c0c201 100644 --- a/options.cpp +++ b/options.cpp @@ -299,6 +299,8 @@ static BOOL CALLBACK DlgProcGpgBinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP GetDlgItemText(hwndDlg, IDC_BIN_PATH, tmp, 512);
DBWriteContactSettingTString(NULL, szModuleName, "szGpgBinPath", tmp);
GetDlgItemText(hwndDlg, IDC_HOME_DIR, tmp, 512);
+ while(tmp[_tcslen(tmp)-1] == '\\')
+ tmp[_tcslen(tmp)-1] = '\0';
DBWriteContactSettingTString(NULL, szModuleName, "szHomePath", tmp);
return TRUE;
}
|