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/NewAwaySysMod/src/Notification.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/NewAwaySysMod/src') diff --git a/plugins/NewAwaySysMod/src/Notification.cpp b/plugins/NewAwaySysMod/src/Notification.cpp index 58b4eaf8dd..3a55cc7798 100644 --- a/plugins/NewAwaySysMod/src/Notification.cpp +++ b/plugins/NewAwaySysMod/src/Notification.cpp @@ -23,15 +23,15 @@ void ShowMsg(wchar_t *FirstLine, wchar_t *SecondLine, bool IsErrorMsg, int Timeout) { - if (ServiceExists(MS_POPUP_ADDPOPUPT)) { - POPUPDATAT ppd = { 0 }; + if (ServiceExists(MS_POPUP_ADDPOPUPW)) { + POPUPDATAW ppd = { 0 }; ppd.lchIcon = LoadIcon(nullptr, IsErrorMsg ? IDI_EXCLAMATION : IDI_INFORMATION); - mir_wstrncpy(ppd.lptzContactName, FirstLine, MAX_CONTACTNAME); - mir_wstrncpy(ppd.lptzText, SecondLine, MAX_SECONDLINE); + mir_wstrncpy(ppd.lpwzContactName, FirstLine, MAX_CONTACTNAME); + mir_wstrncpy(ppd.lpwzText, SecondLine, MAX_SECONDLINE); ppd.colorBack = IsErrorMsg ? 0x0202E3 : 0xE8F1FD; ppd.colorText = IsErrorMsg ? 0xE8F1FD : 0x000000; ppd.iSeconds = Timeout; - PUAddPopupT(&ppd); + PUAddPopupW(&ppd); } else MessageBox(nullptr, SecondLine, FirstLine, MB_OK | (IsErrorMsg ? MB_ICONEXCLAMATION : MB_ICONINFORMATION)); } -- cgit v1.2.3