summaryrefslogtreecommitdiff
path: root/plugins/Popup/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r--plugins/Popup/src/common.h5
-rw-r--r--plugins/Popup/src/services.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Popup/src/common.h b/plugins/Popup/src/common.h
index 819d9fabe0..df079a3c9d 100644
--- a/plugins/Popup/src/common.h
+++ b/plugins/Popup/src/common.h
@@ -82,13 +82,12 @@ inline INT_PTR DBGetContactSettingStringX(MCONTACT hContact, const char *ModuleN
inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, char *text)
{
-
TOOLINFO ti = { 0 };
ti.cbSize = sizeof(TOOLINFO);
ti.hwnd = hwnd;
ti.uId = id;
- SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)(LPTOOLINFO)&ti);
+ SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)&ti);
LPTSTR wtext = mir_a2t(text);
@@ -98,7 +97,7 @@ inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, c
ti.hinst = hInst;
ti.lpszText = TranslateTS(wtext);
ti.rect = rc;
- SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)(LPTOOLINFO)&ti);
+ SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)&ti);
mir_free(wtext);
diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp
index c89388e586..1d54e21027 100644
--- a/plugins/Popup/src/services.cpp
+++ b/plugins/Popup/src/services.cpp
@@ -263,7 +263,7 @@ INT_PTR Popup_ShowMessageW(WPARAM wParam, LPARAM lParam)
default: // No no no... you must give me a good value.
return -1;
}
- return Popup_AddPopup2((WPARAM)&ppd2, (LPARAM)((lParam & 0x80000000) ? APF_NO_HISTORY : 0));
+ return Popup_AddPopup2((WPARAM)&ppd2, (lParam & 0x80000000) ? APF_NO_HISTORY : 0);
}
INT_PTR Popup_ShowMessage(WPARAM wParam, LPARAM lParam)