comctl32: properly initialize internal structures

Daniel Jelinski djelinski1 at gmail.com
Mon Nov 26 15:17:18 CST 2012


-------------- next part --------------
From 95f8526066bd62548a2b77f377cfbee09ac8ef4a Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Mon, 26 Nov 2012 21:39:01 +0100
Subject: comctl32: properly initialize internal structures

After commit ae72b216416f3155ab1f3053bacae6d8b9a5ba4a field rcList was not initialized correctly on window creation.
This resulted in icons being arranged incorrectly in some cases, e.g. in winecfg's application list.
Thanks to Alistair Leslie-Hughes for spotting this.
---
 dlls/comctl32/listview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index d8d11ca..4bac508 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9423,6 +9423,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
 
   /* init item size to avoid division by 0 */
   LISTVIEW_UpdateItemSize (infoPtr);
+  LISTVIEW_UpdateSize (infoPtr);
 
   if (infoPtr->uView == LV_VIEW_DETAILS)
   {
-- 
1.7.5.4


More information about the wine-patches mailing list