aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 7fef22e..c9be01d 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -383,9 +383,7 @@ void WndProcMainMenu(const HWND hWnd, unsigned short wCommand)
const int iEpFocus = ListView_GetNextItem(g_pElv->hWnd, -1, LVNI_FOCUSED);
if (iEpFocus == -1) break;
- LVITEM lvi;
- lvi.iItem = iEpFocus;
- lvi.mask = LVIF_PARAM;
+ LVITEM lvi = {LVIF_PARAM, iEpFocus};
if (!ListView_GetItem(g_pElv->hWnd, &lvi)) break;
char* sz;