diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-21 02:39:14 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2011-10-21 02:39:14 +0300 |
commit | 30af6ed7fb8d41eada477241d47efc320d72ea79 (patch) | |
tree | e8f8ca39c69b202155e6ad8615e23d2dc6a1a08a /options.cpp | |
parent | cae60e6558eac18ed90f5e9b1793b9c940597f32 (diff) |
modified: ../options.cpp
Diffstat (limited to 'options.cpp')
-rwxr-xr-x | options.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/options.cpp b/options.cpp index fe81e36..0371caf 100755 --- a/options.cpp +++ b/options.cpp @@ -359,11 +359,11 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA {
char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", "");
std::string str = szKey;;
- mir_free(szKey); - for(std::string::size_type i = str.find(_T("\n")); i != std::string::npos; i = str.find(_T("\n"), i+2)) - str.replace(i, 1, _T("\r\n")); - szKey = mir_strdup(str.c_str()); - str.clear(); + mir_free(szKey);
+ for(std::string::size_type i = str.find("\n"); i != std::string::npos; i = str.find("\n", i+2))
+ str.replace(i, 1, "\r\n");
+ szKey = mir_strdup(str.c_str());
+ str.clear();
EmptyClipboard();
if(!SetClipboardData(CF_OEMTEXT, szKey))
{
|