diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/episodelistview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp index ea14b5b..6ba97cd 100644 --- a/c/episodelistview.cpp +++ b/c/episodelistview.cpp @@ -362,7 +362,7 @@ void EpisodeListView::Update() if (!g_bViewTVOriginal) if (Pl("episode_data","tv_original",iEp)) continue; - swprintf_s(wszEpisode, sizeof(wszEpisode), L"%d", iEp); + swprintf_s(wszEpisode, sizeof(wszEpisode)/sizeof(*wszEpisode), L"%d", iEp); /* Insert item. */ lviEpisode.iItem = cItem++; @@ -420,7 +420,7 @@ void EpisodeListView::Update() /* Show number of displayed items in status bar. */ extern HWND g_hWndStatus; wchar_t wszDisp[16]; - swprintf_s(wszDisp, sizeof(wszDisp), L"%d", cItem); + swprintf_s(wszDisp, sizeof(wszDisp)/sizeof(*wszDisp), L"%d", cItem); SendMessage(g_hWndStatus, SB_SETTEXT, MAKEWPARAM(1,0), (LPARAM)wszDisp); SendMessage(hWnd, WM_SETREDRAW, TRUE, 0); |