diff options
Diffstat (limited to 'src/mpc-hc/PlayerPlaylistBar.cpp')
-rw-r--r-- | src/mpc-hc/PlayerPlaylistBar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mpc-hc/PlayerPlaylistBar.cpp b/src/mpc-hc/PlayerPlaylistBar.cpp index 49771ed08..61accd7dc 100644 --- a/src/mpc-hc/PlayerPlaylistBar.cpp +++ b/src/mpc-hc/PlayerPlaylistBar.cpp @@ -1140,7 +1140,7 @@ void CPlayerPlaylistBar::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruc CString fmt, file;
fmt.Format(_T("%%0%dd. %%s"), (int)log10(0.1 + m_pl.GetCount()) + 1);
- file.Format(fmt, nItem + 1, m_list.GetItemText(nItem, COL_NAME));
+ file.Format(fmt, nItem + 1, m_list.GetItemText(nItem, COL_NAME).GetString());
CSize filesize = pDC->GetTextExtent(file);
while (3 + filesize.cx + 6 > timept.x && file.GetLength() > 3) {
file = file.Left(file.GetLength() - 4) + _T("...");
@@ -1728,13 +1728,13 @@ void CPlayerPlaylistBar::OnContextMenu(CWnd* /*pWnd*/, CPoint point) switch (idx) {
case 2:
- str.Format(_T("File%d=%s\n"), i + 1, fn);
+ str.Format(_T("File%d=%s\n"), i + 1, fn.GetString());
break;
case 3:
- str.Format(_T("%s\n"), fn);
+ str.Format(_T("%s\n"), fn.GetString());
break;
case 4:
- str.Format(_T("<Entry><Ref href = \"%s\"/></Entry>\n"), fn);
+ str.Format(_T("<Entry><Ref href = \"%s\"/></Entry>\n"), fn.GetString());
break;
default:
break;
|