diff options
Diffstat (limited to 'plugins/SimpleStatusMsg')
-rw-r--r-- | plugins/SimpleStatusMsg/src/awaymsg.cpp | 2 | ||||
-rw-r--r-- | plugins/SimpleStatusMsg/src/msgbox.cpp | 4 | ||||
-rw-r--r-- | plugins/SimpleStatusMsg/src/utils.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp index 30d89eeb56..d130a8314d 100644 --- a/plugins/SimpleStatusMsg/src/awaymsg.cpp +++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp @@ -351,7 +351,7 @@ static INT_PTR GoToURLMsgCommand(WPARAM wParam, LPARAM lParam) char *szMsgURL = (char *)mir_alloc(i + 1);
if (szMsgURL) {
mir_strncpy(szMsgURL, szURL, i + 1);
- CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)szMsgURL);
+ Utils_OpenUrl(szMsgURL);
mir_free(szMsgURL);
}
}
diff --git a/plugins/SimpleStatusMsg/src/msgbox.cpp b/plugins/SimpleStatusMsg/src/msgbox.cpp index 0ce63d8e39..62fae706de 100644 --- a/plugins/SimpleStatusMsg/src/msgbox.cpp +++ b/plugins/SimpleStatusMsg/src/msgbox.cpp @@ -445,11 +445,11 @@ VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control) break; case ID__FORTUNEAWAYMSG: - CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)"http://miranda-ng.org/"); + Utils_OpenUrl("http://miranda-ng.org/"); break; case ID__VARIABLES: - CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)"http://miranda-ng.org/"); + Utils_OpenUrl("http://miranda-ng.org/"); break; case ID__VARIABLES_MOREVARIABLES: diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp index 486bf5481d..4a32d2ffbc 100644 --- a/plugins/SimpleStatusMsg/src/utils.cpp +++ b/plugins/SimpleStatusMsg/src/utils.cpp @@ -84,7 +84,7 @@ int GetRandom(int from, int to) if ((to - from) < 1)
return from;
unsigned randnum;
- CallService(MS_UTILS_GETRANDOM, sizeof(randnum), (LPARAM)&randnum);
+ Utils_GetRandom(&randnum, sizeof(randnum));
return ((randnum % (to - from + 1)) + from);
}
|