[2/2] comctl32/listview: Fix regression caused by commit 59148d0bb549ff8690f15f14571a715e3fdd43a5

Nikolay Sivov bunglehead at gmail.com
Mon Apr 13 01:50:22 CDT 2009


User reported a regression: http://bugs.winehq.org/show_bug.cgi?id=18007
caused by header creation commit. This reported to help.

Changelog:
    - Fix regression caused by commit 59148d0bb549ff8690f15f14571a715e3fdd43a5

>From b117c946e89e92310533c3fd7f8163e24c36daa7 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun, 12 Apr 2009 15:12:39 -0400
Subject: Fix regression caused by commit 59148d0bb549ff8690f15f14571a715e3fdd43a5

---
 dlls/comctl32/listview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index d26f7b0..c357673 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9127,7 +9127,7 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
 	LISTVIEW_UpdateScroll(infoPtr);
     }
 
-    UpdateWindow(infoPtr->hwndHeader);
+    if (infoPtr->hwndHeader)  UpdateWindow(infoPtr->hwndHeader);
 
     if (hdc) 
         LISTVIEW_Refresh(infoPtr, hdc, NULL);
-- 
1.5.6.5





More information about the wine-patches mailing list