summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx/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/MenuItemEx/src
parent288a07c81370226937d882b7a14fe3b6e3607e9e (diff)
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/MenuItemEx/src')
-rw-r--r--plugins/MenuItemEx/src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index 49db1367f3..cf5031a18c 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -199,13 +199,13 @@ static void ShowPopup(const wchar_t *pwszText, MCONTACT hContact)
{
if (!pwszText) return;
- POPUPDATAT ppd = {};
+ POPUPDATAW ppd = {};
ppd.lchIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
ppd.lchContact = hContact;
- wcsncpy(ppd.lptzContactName, Clist_GetContactDisplayName(hContact), MAX_CONTACTNAME - 1);
- wcsncpy(ppd.lptzText, pwszText, MAX_SECONDLINE - 1);
+ wcsncpy(ppd.lpwzContactName, Clist_GetContactDisplayName(hContact), MAX_CONTACTNAME - 1);
+ wcsncpy(ppd.lpwzText, pwszText, MAX_SECONDLINE - 1);
ppd.iSeconds = -1;
- PUAddPopupT(&ppd);
+ PUAddPopupW(&ppd);
}
BOOL DirectoryExists(MCONTACT hContact)
@@ -897,7 +897,7 @@ static int ContactWindowOpen(WPARAM, LPARAM lParam)
static int ModuleLoad(WPARAM, LPARAM)
{
- bPopupService = ServiceExists(MS_POPUP_ADDPOPUPT);
+ bPopupService = ServiceExists(MS_POPUP_ADDPOPUPW);
return 0;
}