summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
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 /protocols/FacebookRM
parent288a07c81370226937d882b7a14fe3b6e3607e9e (diff)
popup code cleaning (cause we have no tchar.h)
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/process.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 9541b1d3a5..705e1ae521 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -325,8 +325,8 @@ void FacebookProto::LoadHistory(void *pParam)
pd.iSeconds = 5;
pd.lchContact = hContact;
pd.lchIcon = IcoLib_GetIconByHandle(GetIconHandle("conversation")); // TODO: Use better icon
- wcsncpy(pd.lptzContactName, m_tszUserName, MAX_CONTACTNAME);
- wcsncpy(pd.lptzText, TranslateT("Loading history started."), MAX_SECONDLINE);
+ wcsncpy(pd.lpwzContactName, m_tszUserName, MAX_CONTACTNAME);
+ wcsncpy(pd.lpwzText, TranslateT("Loading history started."), MAX_SECONDLINE);
HWND popupHwnd = nullptr;
if (ServiceExists(MS_POPUP_ADDPOPUPW)) {
@@ -413,7 +413,7 @@ void FacebookProto::LoadHistory(void *pParam)
PUChangeTextW(popupHwnd, text);
}
else if (ServiceExists(MS_POPUP_ADDPOPUPW)) {
- wcsncpy(pd.lptzText, text, MAX_SECONDLINE);
+ wcsncpy(pd.lpwzText, text, MAX_SECONDLINE);
pd.iSeconds = 1;
popupHwnd = (HWND)CallService(MS_POPUP_ADDPOPUPW, (WPARAM)&pd, (LPARAM)0);
}
@@ -435,7 +435,7 @@ void FacebookProto::LoadHistory(void *pParam)
PUChangeTextW(popupHwnd, TranslateT("Loading history completed."));
else if (ServiceExists(MS_POPUP_ADDPOPUPW)) {
pd.iSeconds = 5;
- wcsncpy(pd.lptzText, TranslateT("Loading history completed."), MAX_SECONDLINE);
+ wcsncpy(pd.lpwzText, TranslateT("Loading history completed."), MAX_SECONDLINE);
popupHwnd = (HWND)CallService(MS_POPUP_ADDPOPUPW, (WPARAM)&pd, (LPARAM)0);
}
}