diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-27 12:43:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-27 12:43:20 +0300 |
commit | 423be683866fd8e305457eb725d8cdbe1f297fbd (patch) | |
tree | c49a7bdaf7f08683b9bfae48f0250050b2bf1872 /plugins/Popup/src/popup_wnd2.cpp | |
parent | 288a07c81370226937d882b7a14fe3b6e3607e9e (diff) |
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/Popup/src/popup_wnd2.cpp')
-rw-r--r-- | plugins/Popup/src/popup_wnd2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index 0f56959886..0b41e89e3c 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -688,8 +688,8 @@ void PopupWnd2::updateData(POPUPDATAW_V2 *ppd) if (m_textType == TT_NONE)
m_textType = TT_UNICODE;
- replaceStrW(m_lptzTitle, ppd->lptzContactName);
- replaceStrW(m_lptzText, ppd->lptzText);
+ replaceStrW(m_lptzTitle, ppd->lpwzContactName);
+ replaceStrW(m_lptzText, ppd->lpwzText);
setIcon(ppd->lchIcon);
m_hNotification = ppd->hNotification;
@@ -718,7 +718,7 @@ void PopupWnd2::updateData(POPUPDATA2 *ppd) if (m_textType == TT_NONE)
m_textType = TT_UNICODE;
replaceStrW(m_lptzTitle, ppd->lptzTitle);
- replaceStrW(m_lptzText, ppd->lptzText);
+ replaceStrW(m_lptzText, ppd->lpwzText);
}
else {
replaceStrW(m_lptzTitle, nullptr);
@@ -991,7 +991,7 @@ LRESULT CALLBACK PopupWnd2::WindowProc(UINT message, WPARAM wParam, LPARAM lPara case UM_POPUPMODIFYACTIONICON:
{
- LPPOPUPACTIONID actionId = (LPPOPUPACTIONID)wParam;
+ POPUPACTIONID *actionId = (POPUPACTIONID*)wParam;
for (int i = 0; i < m_actionCount; ++i)
if ((m_actions[i].actionA.wParam == actionId->wParam) &&
(m_actions[i].actionA.lParam == actionId->lParam)) {
|