diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-06-24 20:29:18 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-06-24 20:29:18 +0000 |
commit | 61f15ba72fa1cbc4b215804b14edc70b603c9545 (patch) | |
tree | 19a0978464451d855b914db0d732d7721c414821 /plugins | |
parent | ab9f137bc41278ab2112760cc826d94affdd2c48 (diff) |
Unicode URLs
git-svn-id: http://svn.miranda-ng.org/main/trunk@613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/BasicHistory/HistoryWindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/BasicHistory/HistoryWindow.cpp b/plugins/BasicHistory/HistoryWindow.cpp index bfd1c8730e..55cef0da86 100644 --- a/plugins/BasicHistory/HistoryWindow.cpp +++ b/plugins/BasicHistory/HistoryWindow.cpp @@ -555,7 +555,6 @@ void ClickLink(HWND hwnd, ENLINK *penLink) {
TEXTRANGE tr;
CHARRANGE sel;
- char* pszUrl;
SendMessage(hwnd, EM_EXGETSEL, 0, (LPARAM) & sel);
if (sel.cpMin != sel.cpMax)
@@ -563,9 +562,7 @@ void ClickLink(HWND hwnd, ENLINK *penLink) tr.chrg = penLink->chrg;
tr.lpstrText = buf;
SendMessage(hwnd, EM_GETTEXTRANGE, 0, (LPARAM) & tr);
- pszUrl = mir_t2a( tr.lpstrText );
- CallService(MS_UTILS_OPENURL, penLink->nmhdr.code == IDM_OPENNEW ? 1 : 0, (LPARAM) pszUrl);
- mir_free(pszUrl);
+ CallService(MS_UTILS_OPENURL, (penLink->nmhdr.code == IDM_OPENNEW ? OUF_NEWWINDOW : 0) | OUF_TCHAR, (LPARAM) tr.lpstrText);
}
}
}
|