mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-22 11:03:28 -05:00
fix incorrect returned index #1945
This commit is contained in:
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user