diff options
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r-- | c/episodelistview.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 5003495..01b4c1a 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -355,18 +355,16 @@ void EpisodeListView::Update() /* Update episode name and rating. */ void EpisodeListView::UpdateItem(LPLVITEM lpLvi) { - std::basic_string<TCHAR> tsmName; - char *szName; + TCHAR *tszName; int iRating; static TCHAR tszRating[3]; - if (!Pl("episode_data","episode_title",lpLvi->lParam,&szName)) { + if (!Pl("episode_data","episode_title",lpLvi->lParam,&tszName)) { if (!Pl("episode_data","update_episode_data")) goto r; - if (!Pl("episode_data","episode_title",lpLvi->lParam,&szName)) + if (!Pl("episode_data","episode_title",lpLvi->lParam,&tszName)) goto r; } - tsmName = TsmFromSz(szName, CP_UTF8); - ListView_SetItemText(m_hWnd, lpLvi->iItem, ELVSITITLE, tsmName.data()); + ListView_SetItemText(m_hWnd, lpLvi->iItem, ELVSITITLE, tszName); r: if (!Pl("episode_data","episode_rating",lpLvi->lParam,&iRating)) { ListView_SetItemText(m_hWnd, lpLvi->iItem, ELVSIRATING, TEXT("")); |