diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 20:58:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 20:58:58 +0300 |
commit | ed4897b7ef69e862806a8c07f1fd475262d0c36e (patch) | |
tree | 414efc6365f455122956eac74b754505c8efaf15 /plugins/Scriver | |
parent | 99893bf3aec9f4e9f0c4844c0987d129e1778c7e (diff) |
massive warning fix
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/infobar.cpp | 2 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Scriver/src/infobar.cpp b/plugins/Scriver/src/infobar.cpp index f043c0a554..6cd62573ff 100644 --- a/plugins/Scriver/src/infobar.cpp +++ b/plugins/Scriver/src/infobar.cpp @@ -83,7 +83,7 @@ void CSrmmWindow::RefreshInfobar() wchar_t szText[2048];
SETTEXTEX st;
if (szXStatusMsg && *szXStatusMsg)
- mir_snwprintf(szText, L"%s (%s)", TranslateW(szXStatusName), szXStatusMsg);
+ mir_snwprintf(szText, L"%s (%s)", TranslateW(szXStatusName), szXStatusMsg.get());
else if (szXStatusName && *szXStatusName)
wcsncpy_s(szText, TranslateW(szXStatusName), _TRUNCATE);
else
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index ddc1f27bda..25147078a3 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -960,7 +960,7 @@ LRESULT CSrmmWindow::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam) ptrW pszWord(GetRichTextWord(m_log.GetHwnd(), &ptl));
if (pszWord && pszWord[0]) {
wchar_t szMenuText[4096];
- mir_snwprintf(szMenuText, TranslateT("Look up '%s':"), pszWord);
+ mir_snwprintf(szMenuText, TranslateT("Look up '%s':"), pszWord.get());
ModifyMenu(hSubMenu, 5, MF_STRING | MF_BYPOSITION, 5, szMenuText);
SetSearchEngineIcons(hMenu, g_dat.hSearchEngineIconList);
}
|