From 423be683866fd8e305457eb725d8cdbe1f297fbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2019 12:43:20 +0300 Subject: popup code cleaning (cause we have no tchar.h) --- plugins/NotifyAnything/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/NotifyAnything/src') 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; } } -- cgit v1.2.3