summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src/wumfplug.cpp
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/WhoUsesMyFiles/src/wumfplug.cpp
parent288a07c81370226937d882b7a14fe3b6e3607e9e (diff)
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'plugins/WhoUsesMyFiles/src/wumfplug.cpp')
-rw-r--r--plugins/WhoUsesMyFiles/src/wumfplug.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
index 26ff252798..e393337547 100644
--- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
@@ -55,7 +55,7 @@ void LoadOptions()
WumfOptions.DelayInf = g_plugin.getByte(DELAY_INF, FALSE);
WumfOptions.DelaySet = g_plugin.getByte(DELAY_SET, FALSE);
WumfOptions.DelaySec = g_plugin.getByte(DELAY_SEC, 0);
- if (!ServiceExists(MS_POPUP_ADDPOPUPT)) {
+ if (!ServiceExists(MS_POPUP_ADDPOPUPW)) {
WumfOptions.DelayDef = TRUE;
WumfOptions.DelaySet = FALSE;
WumfOptions.DelayInf = FALSE;
@@ -134,7 +134,7 @@ void ShowWumfPopup(PWumf w)
void ShowThePopup(PWumf w, LPTSTR title, LPTSTR text)
{
- POPUPDATAT ppd = { 0 };
+ POPUPDATAW ppd = { 0 };
ppd.lchContact = NULL;
ppd.lchIcon = LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_DRIVE));
@@ -145,8 +145,8 @@ void ShowThePopup(PWumf w, LPTSTR title, LPTSTR text)
else if (WumfOptions.DelaySet)
ppd.iSeconds = WumfOptions.DelaySec;
- mir_wstrncpy(ppd.lptzContactName, title, MAX_CONTACTNAME);
- mir_wstrncpy(ppd.lptzText, text, MAX_SECONDLINE);
+ mir_wstrncpy(ppd.lpwzContactName, title, MAX_CONTACTNAME);
+ mir_wstrncpy(ppd.lpwzText, text, MAX_SECONDLINE);
if (WumfOptions.UseWinColor) {
ppd.colorBack = GetSysColor(COLOR_WINDOW);
ppd.colorText = GetSysColor(COLOR_WINDOWTEXT);
@@ -158,7 +158,7 @@ void ShowThePopup(PWumf w, LPTSTR title, LPTSTR text)
ppd.PluginWindowProc = PopupDlgProc;
ppd.PluginData = w;
- PUAddPopupT(&ppd);
+ PUAddPopupW(&ppd);
}
void ThreadProc(LPVOID)