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/NotifyAnything | |
parent | 288a07c81370226937d882b7a14fe3b6e3607e9e (diff) |
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/NotifyAnything')
-rw-r--r-- | plugins/NotifyAnything/src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index 3299040a02..19b433b087 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -480,9 +480,9 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA int showMessage(const popup_t &msg)
{
- POPUPDATAT ppd = { 0 };
- wcsncpy(ppd.lptzText, strip(msg.message).c_str(), MAX_SECONDLINE);
- wcsncpy(ppd.lptzContactName, msg.contact.c_str(), MAX_CONTACTNAME);
+ POPUPDATAW ppd = { 0 };
+ wcsncpy(ppd.lpwzText, strip(msg.message).c_str(), MAX_SECONDLINE);
+ wcsncpy(ppd.lpwzContactName, msg.contact.c_str(), MAX_CONTACTNAME);
ppd.colorBack = msg.background;
ppd.colorText = msg.foreground;
ppd.lchIcon = getIcon(msg.icon);
@@ -498,7 +498,7 @@ int showMessage(const popup_t &msg) g_anon_popups.insert(msgp);
ppd.PluginData = msgp;
- return PUAddPopupT(&ppd);
+ return PUAddPopupW(&ppd);
}
void replaceMessage(const popup_t &msg)
@@ -531,7 +531,7 @@ void replaceMessage(const popup_t &msg) if (!msg.closed.empty())
nmsg.closed = msg.closed;
- PUChangeTextT(i->second->hwnd, strip(i->second->message).c_str());
+ PUChangeTextW(i->second->hwnd, strip(i->second->message).c_str());
return;
}
}
|