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/Nudge | |
parent | 288a07c81370226937d882b7a14fe3b6e3607e9e (diff) |
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/Nudge')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index 48b387bfca..20dcad8548 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -285,8 +285,8 @@ void Nudge_ShowPopup(CNudgeElement*, MCONTACT hContact, wchar_t * Message) NudgePopup.pszClassName = "nudge";
CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&NudgePopup);
}
- else if (ServiceExists(MS_POPUP_ADDPOPUPT)) {
- POPUPDATAT NudgePopup = { 0 };
+ else if (ServiceExists(MS_POPUP_ADDPOPUPW)) {
+ POPUPDATAW NudgePopup = { 0 };
NudgePopup.lchContact = hContact;
NudgePopup.lchIcon = IcoLib_GetIconByHandle(iconList[0].hIcolib);
NudgePopup.colorBack = 0;
@@ -295,10 +295,10 @@ void Nudge_ShowPopup(CNudgeElement*, MCONTACT hContact, wchar_t * Message) NudgePopup.PluginWindowProc = NudgePopupProc;
NudgePopup.PluginData = (void *)1;
- wcscpy_s(NudgePopup.lptzText, Message);
- wcscpy_s(NudgePopup.lptzContactName, lpzContactName);
+ wcscpy_s(NudgePopup.lpwzText, Message);
+ wcscpy_s(NudgePopup.lpwzContactName, lpzContactName);
- CallService(MS_POPUP_ADDPOPUPT, (WPARAM)&NudgePopup, 0);
+ CallService(MS_POPUP_ADDPOPUPW, (WPARAM)&NudgePopup, 0);
}
else MessageBox(nullptr, Message, lpzContactName, 0);
}
|