summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Weather/weather_contacts.cpp4
-rw-r--r--protocols/Weather/weather_ini.cpp3
-rw-r--r--protocols/Weather/weather_userinfo.cpp2
3 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Weather/weather_contacts.cpp b/protocols/Weather/weather_contacts.cpp
index fe48b1926d..7089e04056 100644
--- a/protocols/Weather/weather_contacts.cpp
+++ b/protocols/Weather/weather_contacts.cpp
@@ -31,9 +31,7 @@ static void OpenUrl( TCHAR* format, TCHAR* id )
GetID( id );
mir_sntprintf( loc, SIZEOF(loc), format, id );
- char* szUrl = mir_t2a( loc );
- CallService(MS_UTILS_OPENURL, opt.NewBrowserWin, (LPARAM)szUrl );
- mir_free( szUrl );
+ CallService(MS_UTILS_OPENURL, opt.NewBrowserWin | OUF_TCHAR, (LPARAM)loc );
}
//============ BASIC CONTACTS FUNCTIONS AND LINKS ============
diff --git a/protocols/Weather/weather_ini.cpp b/protocols/Weather/weather_ini.cpp
index 1db9c8384e..06e83db986 100644
--- a/protocols/Weather/weather_ini.cpp
+++ b/protocols/Weather/weather_ini.cpp
@@ -566,8 +566,7 @@ INT_PTR CALLBACK DlgProcSetup(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
{
case IDC_STEP1:
// update current data
- CallService(MS_UTILS_OPENURL, opt.NewBrowserWin,
- (WPARAM)"http://miranda-ng.org/");
+ CallService(MS_UTILS_OPENURL, opt.NewBrowserWin | OUF_TCHAR, (WPARAM)_T("http://miranda-ng.org/"));
break;
case IDC_STEP2:
diff --git a/protocols/Weather/weather_userinfo.cpp b/protocols/Weather/weather_userinfo.cpp
index c00be9e018..cac28fb34b 100644
--- a/protocols/Weather/weather_userinfo.cpp
+++ b/protocols/Weather/weather_userinfo.cpp
@@ -322,7 +322,7 @@ INT_PTR CALLBACK DlgProcMoreData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
tr.chrg = enlink->chrg;
tr.lpstrText = ( LPTSTR )mir_alloc( sizeof(TCHAR)*(tr.chrg.cpMax - tr.chrg.cpMin + 8));
SendMessage(pNmhdr->hwndFrom, EM_GETTEXTRANGE, 0, (LPARAM)&tr);
- CallService(MS_UTILS_OPENURL, 1, (LPARAM) tr.lpstrText);
+ CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW | OUF_TCHAR, (LPARAM) tr.lpstrText);
mir_free(tr.lpstrText);
break;
}