summaryrefslogtreecommitdiff
path: root/plugins/MsgPopup/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-27 12:43:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-27 12:43:20 +0300
commit423be683866fd8e305457eb725d8cdbe1f297fbd (patch)
treec49a7bdaf7f08683b9bfae48f0250050b2bf1872 /plugins/MsgPopup/src
parent288a07c81370226937d882b7a14fe3b6e3607e9e (diff)
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/MsgPopup/src')
-rw-r--r--plugins/MsgPopup/src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MsgPopup/src/main.cpp b/plugins/MsgPopup/src/main.cpp
index 1db3743488..e7f7dcdbc9 100644
--- a/plugins/MsgPopup/src/main.cpp
+++ b/plugins/MsgPopup/src/main.cpp
@@ -66,7 +66,7 @@ MSGBOXPROC prevMessageBox;
void popupMessage(LPCTSTR lpText, LPCTSTR lpCaption, UINT uType)
{
- POPUPDATAT ppd = { 0 };
+ POPUPDATAW ppd = { 0 };
int iIcon;
int indx;
@@ -94,9 +94,9 @@ void popupMessage(LPCTSTR lpText, LPCTSTR lpCaption, UINT uType)
ppd.iSeconds = options.Timeout[indx];
ppd.lchIcon = (HICON)LoadImage(nullptr, MAKEINTRESOURCE(iIcon), IMAGE_ICON, SM_CXSMICON, SM_CYSMICON, LR_SHARED);
- mir_wstrcpy(ppd.lptzContactName, lpCaption);
- mir_wstrcpy(ppd.lptzText, lpText);
- PUAddPopupT(&ppd);
+ mir_wstrcpy(ppd.lpwzContactName, lpCaption);
+ mir_wstrcpy(ppd.lpwzText, lpText);
+ PUAddPopupW(&ppd);
if (options.Sound)
MessageBeep(uType);
}
@@ -189,7 +189,7 @@ int HookedInit(WPARAM, LPARAM)
int HookedOptions(WPARAM wParam, LPARAM)
{
- if (ServiceExists(MS_POPUP_ADDPOPUPT)) {
+ if (ServiceExists(MS_POPUP_ADDPOPUPW)) {
OPTIONSDIALOGPAGE odp = {};
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
odp.szTitle.w = LPGENW("MessagePopup");