Skip to content

Commit d240db0

Browse files
committed
upd _app_listview_addnetworkitem
1 parent fe7ba9e commit d240db0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/listview.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,11 @@ VOID _app_listview_addnetworkitem (
184184
_In_ ULONG_PTR network_hash
185185
)
186186
{
187-
LPARAM listview_context;
188-
INT item_id;
189-
190-
item_id = _r_listview_getitemcount (hwnd, IDC_NETWORK);
187+
LPARAM context;
191188

192-
listview_context = _app_listview_createcontext (network_hash);
189+
context = _app_listview_createcontext (network_hash);
193190

194-
_r_listview_additem_ex (hwnd, IDC_NETWORK, item_id, LPSTR_TEXTCALLBACK, I_IMAGECALLBACK, I_GROUPIDCALLBACK, listview_context);
191+
_r_listview_additem_ex (hwnd, IDC_NETWORK, 0, LPSTR_TEXTCALLBACK, I_IMAGECALLBACK, I_GROUPIDCALLBACK, context);
195192
}
196193

197194
VOID _app_listview_addlogitem (

0 commit comments

Comments
 (0)