fix incorrect returned index #1945

This commit is contained in:
henrypp committed 2025-01-26 18:59:24 +05:00
1 parent eba0a965ab
commit c570a5d19e
1 file changed
+5
+5
View File
@@ -11,8 +11,13 @@ PITEM_TAB_CONTEXT _app_listview_getcontext (
PITEM_TAB_CONTEXT context;
if (tab_id == INT_ERROR)
{
tab_id = _r_tab_getcurrentitem (hwnd, IDC_TAB);
if (tab_id == INT_ERROR)
tab_id = 0;
}
context = (PITEM_TAB_CONTEXT)_r_tab_getitemlparam (hwnd, IDC_TAB, tab_id);
return context;