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/TabSRMM/src/modplus.cpp | |
parent | 99893bf3aec9f4e9f0c4844c0987d129e1778c7e (diff) |
massive warning fix
Diffstat (limited to 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r-- | plugins/TabSRMM/src/modplus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp index 10cf7aaab3..8d7215bddf 100644 --- a/plugins/TabSRMM/src/modplus.cpp +++ b/plugins/TabSRMM/src/modplus.cpp @@ -100,7 +100,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) int res = TrackPopupMenu(hMenu, TPM_RETURNCMD, cbcd->pt.x, cbcd->pt.y, 0, cbcd->hwndFrom, nullptr);
if (res != 0) {
bufSize = textlenght + mir_wstrlen(arMenuLines[res-1]) + 2;
- pwszFormatedText.Format(arMenuLines[res-1], pszText);
+ pwszFormatedText.Format(arMenuLines[res-1], pszText.get());
}
for (auto &it : arMenuLines)
@@ -110,7 +110,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) else if (textlenght) {
SendDlgItemMessage(cbcd->hwndFrom, IDC_SRMM_MESSAGE, EM_GETSELTEXT, 0, (LPARAM)pszText);
- pwszFormatedText.Format(L"[img]%s[/img]", pszText);
+ pwszFormatedText.Format(L"[img]%s[/img]", pszText.get());
bbd.pwszTooltip = nullptr;
bbd.hIcon = nullptr;
|