Commit ac78bfe1 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

shell32: Fix descriptions being applied to wrong entries in control panel.

parent 95660514
...@@ -237,6 +237,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs) ...@@ -237,6 +237,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
LVITEMW lvItem; LVITEMW lvItem;
INITCOMMONCONTROLSEX icex; INITCOMMONCONTROLSEX icex;
INT sb_parts; INT sb_parts;
int itemidx;
SetWindowLongPtrW(hWnd, 0, (LONG_PTR)panel); SetWindowLongPtrW(hWnd, 0, (LONG_PTR)panel);
panel->hWnd = hWnd; panel->hWnd = hWnd;
...@@ -296,10 +297,10 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs) ...@@ -296,10 +297,10 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
lvItem.iImage = index; lvItem.iImage = index;
lvItem.lParam = (LPARAM) item; lvItem.lParam = (LPARAM) item;
ListView_InsertItemW(panel->hWndListView, &lvItem); itemidx = ListView_InsertItemW(panel->hWndListView, &lvItem);
/* add the description */ /* add the description */
ListView_SetItemTextW(panel->hWndListView, menucount, 1, ListView_SetItemTextW(panel->hWndListView, itemidx, 1,
applet->info[i].szInfo); applet->info[i].szInfo);
/* update menu bar, increment count */ /* update menu bar, increment count */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment