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

Alexandre Julliard julliard at winehq.org
Tue Jul 29 07:16:11 CDT 2008


Module: wine
Branch: master
Commit: ac78bfe18a2727a548bcdaed6e8bb7436007c6fd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ac78bfe18a2727a548bcdaed6e8bb7436007c6fd

Author: Owen Rudge <owen at owenrudge.net>
Date:   Mon Jul 28 16:14:49 2008 +0100

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

---

 dlls/shell32/control.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c
index 642e611..a339dbc 100644
--- a/dlls/shell32/control.c
+++ b/dlls/shell32/control.c
@@ -237,6 +237,7 @@ static void 	 Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
    LVITEMW lvItem;
    INITCOMMONCONTROLSEX icex;
    INT sb_parts;
+   int itemidx;
 
    SetWindowLongPtrW(hWnd, 0, (LONG_PTR)panel);
    panel->hWnd = hWnd;
@@ -296,10 +297,10 @@ static void 	 Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
             lvItem.iImage = index;
             lvItem.lParam = (LPARAM) item;
 
-            ListView_InsertItemW(panel->hWndListView, &lvItem);
+            itemidx = ListView_InsertItemW(panel->hWndListView, &lvItem);
 
             /* add the description */
-            ListView_SetItemTextW(panel->hWndListView, menucount, 1,
+            ListView_SetItemTextW(panel->hWndListView, itemidx, 1,
                 applet->info[i].szInfo);
 
             /* update menu bar, increment count */




More information about the wine-cvs mailing list