diff options
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;
|