From ba456be50d3b780e4accf075ba78d5badf282b05 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jun 2015 19:09:56 +0000 Subject: MS_UTIL_OPENURL -> mir_core::Utils_OpenUrl git-svn-id: http://svn.miranda-ng.org/main/trunk@14306 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/hpp_global.pas | 13 +------------ plugins/HistoryPlusPlus/hpp_opt_dialog.pas | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/hpp_global.pas b/plugins/HistoryPlusPlus/hpp_global.pas index a1e19d21aa..d0b04669c6 100644 --- a/plugins/HistoryPlusPlus/hpp_global.pas +++ b/plugins/HistoryPlusPlus/hpp_global.pas @@ -433,17 +433,6 @@ var URLTextW: String; URLTextA: AnsiString; begin -{ - if EncodeURL(URLText, URLTextW) then - begin - URLTextA := WideToAnsiString(URLTextW, CP_ACP); - if not SameStr(URLTextW, AnsiToWideString(URLTextA, CP_ACP)) then - URLTextA := QuoteURL(URLTextW); - end - else - URLTextA := WideToAnsiString(URLText, CP_ACP); - CallService(MS_UTILS_OPENURL,WPARAM(NewWindow),LPARAM(@URLTextA[1])); -} if EncodeURL(URLText, URLTextW) then begin URLTextA := AnsiString(URLTextW); @@ -452,7 +441,7 @@ begin end else URLTextA := AnsiString(URLText); - CallService(MS_UTILS_OPENURL,WPARAM(NewWindow),LPARAM(@URLTextA[1])); + Utils_OpenUrl(@URLTextA[1]); end; function AnsiToWideString(const S: AnsiString; CodePage: Cardinal; InLength: Integer = -1): WideString; diff --git a/plugins/HistoryPlusPlus/hpp_opt_dialog.pas b/plugins/HistoryPlusPlus/hpp_opt_dialog.pas index ab70486199..36a93ccbb5 100644 --- a/plugins/HistoryPlusPlus/hpp_opt_dialog.pas +++ b/plugins/HistoryPlusPlus/hpp_opt_dialog.pas @@ -255,7 +255,7 @@ begin WM_COMMAND: begin case LoWord(wParam) of ID_NEEDOPTIONS_LINK: begin - CallService(MS_UTILS_OPENURL,TWPARAM(True),TLPARAM(PAnsiChar(URL_NEEDOPTIONS))); + Utils_OpenUrl(URL_NEEDOPTIONS); Result := 1; end; else -- cgit v1.2.3