From 61f15ba72fa1cbc4b215804b14edc70b603c9545 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 24 Jun 2012 20:29:18 +0000 Subject: Unicode URLs git-svn-id: http://svn.miranda-ng.org/main/trunk@613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/HistoryWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 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); } } } -- cgit v1.2.3