diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 08:40:22 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 08:40:22 +0000 |
commit | a85d3756ce4eb0257025b005deb795ba05fd4fda (patch) | |
tree | 20a417a340172bf9a7ad0ec34322246b91864801 /plugins/HistoryLinkListPlus/src/linklist_dlg.cpp | |
parent | 303e6b483aff4126701ca375dd085e9ae1d18b43 (diff) |
arg fixes for MS_UTILS_OPENURL service
git-svn-id: http://svn.miranda-ng.org/main/trunk@11362 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryLinkListPlus/src/linklist_dlg.cpp')
-rw-r--r-- | plugins/HistoryLinkListPlus/src/linklist_dlg.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp index 2836925d22..5e48513c0b 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp @@ -129,7 +129,10 @@ INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) openNewWindow = db_get_b(NULL, LINKLIST_MODULE, LINKLIST_OPEN_WINDOW, 0xFF);
if (openNewWindow == 0xFF)
openNewWindow = 0;
- CallService(MS_UTILS_OPENURL, openNewWindow, (LPARAM)link);
+ else
+ openNewWindow = OUF_NEWWINDOW;
+
+ CallService(MS_UTILS_OPENURL, openNewWindow | OUF_TCHAR, (LPARAM)link);
}
mir_free(link);
break;
@@ -159,13 +162,13 @@ INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) if (_tcsstr(link, _T("mailto:")) != NULL)
ShellExecute(HWND_TOP, NULL, link, NULL, NULL, SW_SHOWNORMAL);
else
- CallService(MS_UTILS_OPENURL, 0, (LPARAM)link);
+ CallService(MS_UTILS_OPENURL, OUF_TCHAR, (LPARAM)link);
break;
case IDM_LINK_OPENNEW:
if (_tcsstr(link, _T("mailto:")) != NULL)
ShellExecute(HWND_TOP, NULL, link, NULL, NULL, SW_SHOWNORMAL);
else
- CallService(MS_UTILS_OPENURL, 1, (LPARAM)link);
+ CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW | OUF_TCHAR, (LPARAM)link);
break;
case IDM_LINK_COPY: {
size_t dataLen;
|