From 64493e774a02acd2c4b701e1e39f7f14a0b3920e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 26 Jul 2022 20:31:33 +0200 Subject: Rewrite WM_MENUSELECT handling. --- c/episodelistview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/episodelistview.cpp') diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index 5aa8850..3b16a06 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -436,8 +436,8 @@ void EpisodeListView::UpdateItem(const LVITEM* const pLvi) } ListView_SetItemText(hWnd, pLvi->iItem, ELVSITITLE, wsName.data()); - int iRating; -r: if (!Pl("episode_data","episode_rating",pLvi->lParam,&iRating)) { +r: int iRating; + if (!Pl("episode_data","episode_rating",pLvi->lParam,&iRating)) { ListView_SetItemText(hWnd, pLvi->iItem, ELVSIRATING, (wchar_t*)L""); return; } @@ -456,7 +456,7 @@ LRESULT CALLBACK EpisodeListView::WndProc(const HWND hWnd, const UINT uMsg, /* For the episode list view, the Enter key should not * be handled by the dialog manager, but instead be sent * along to the main window procedure, so that it may be - * handled by the NM_RETURN case in ElvHandleNotify. */ + * handled by the NM_RETURN case in HandleNotify. */ const LRESULT lResult = CallWindowProc(m_prevProc, hWnd, uMsg, wParam, lParam); if (lParam && ((MSG*)lParam)->message == WM_KEYDOWN -- cgit v1.2.3