summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-08-19 11:17:23 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-08-19 11:17:23 +0000
commit1e10085801d12b93c0fb11340e2d495e76b205dd (patch)
tree38aa763d72dcde30c089be58ebef9c2909af979d
parentb4485ac19d490a1cd36d1aa9dd3eeed8076d0e89 (diff)
even more unicode fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@1499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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;
}