diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-08 15:29:44 +0300 |
commit | 99962115431435cf17dfae4d3b7c8d7d55d824bf (patch) | |
tree | 1c80a533f5d3d4ba9d3b894a9a38b9167fe3047e /protocols/FacebookRM/src | |
parent | a23186175cff579d5aeb231372e87b0b852bdb38 (diff) |
life is too short to remember whether this structure is zeroed or not
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 21293f11b3..b63006bea3 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -321,14 +321,14 @@ void FacebookProto::LoadHistory(void *pParam) // Mark we're loading history, so we can behave differently (e.g., stickers won't be refreshed as it slows the whole process down drastically) facy.loading_history = true; - POPUPDATAW pd = { sizeof(pd) }; - pd.iSeconds = 5; - pd.lchContact = hContact; - pd.lchIcon = IcoLib_GetIconByHandle(GetIconHandle("conversation")); // TODO: Use better icon - wcsncpy(pd.lpwzContactName, m_tszUserName, MAX_CONTACTNAME); - wcsncpy(pd.lpwzText, TranslateT("Loading history started."), MAX_SECONDLINE); + POPUPDATAW ppd; + ppd.iSeconds = 5; + ppd.lchContact = hContact; + ppd.lchIcon = IcoLib_GetIconByHandle(GetIconHandle("conversation")); // TODO: Use better icon + wcsncpy(ppd.lpwzContactName, m_tszUserName, MAX_CONTACTNAME); + wcsncpy(ppd.lpwzText, TranslateT("Loading history started."), MAX_SECONDLINE); - HWND popupHwnd = (HWND)PUAddPopupW(&pd, (LPARAM)APF_RETURN_HWND); + HWND popupHwnd = (HWND)PUAddPopupW(&ppd, (LPARAM)APF_RETURN_HWND); std::vector<facebook_message> messages; std::string firstTimestamp; @@ -409,9 +409,9 @@ void FacebookProto::LoadHistory(void *pParam) if (popupHwnd) PUChangeTextW(popupHwnd, text); else { - wcsncpy(pd.lpwzText, text, MAX_SECONDLINE); - pd.iSeconds = 1; - popupHwnd = (HWND)PUAddPopupW(&pd); + wcsncpy(ppd.lpwzText, text, MAX_SECONDLINE); + ppd.iSeconds = 1; + popupHwnd = (HWND)PUAddPopupW(&ppd); } // There is no more messages @@ -430,9 +430,9 @@ void FacebookProto::LoadHistory(void *pParam) if (popupHwnd) PUChangeTextW(popupHwnd, TranslateT("Loading history completed.")); else { - pd.iSeconds = 5; - wcsncpy(pd.lpwzText, TranslateT("Loading history completed."), MAX_SECONDLINE); - popupHwnd = (HWND)PUAddPopupW(&pd); + ppd.iSeconds = 5; + wcsncpy(ppd.lpwzText, TranslateT("Loading history completed."), MAX_SECONDLINE); + popupHwnd = (HWND)PUAddPopupW(&ppd); } } |