[1/5] comctl32/listview: Reuse existing variable instead of duplicated expression

Nikolay Sivov bunglehead at gmail.com
Sun Apr 26 04:03:33 CDT 2009


Changelog:
    - Reuse existing variable instead of duplicated expression

>From 07b0fd65f594fa8b5c1aa482d4f660c8b42ef0c2 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun, 26 Apr 2009 12:33:14 +0400
Subject: Reuse existing variable instead of duplicated expression

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

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 2aed87e..f6c09d0 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4365,8 +4365,7 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra
 enddraw:
     /* For LVS_EX_GRIDLINES go and draw lines */
     /*  This includes the case where there were *no* items */
-    if ((infoPtr->dwStyle & LVS_TYPEMASK) == LVS_REPORT &&
-        infoPtr->dwLvExStyle & LVS_EX_GRIDLINES)
+    if ((uView == LVS_REPORT) && infoPtr->dwLvExStyle & LVS_EX_GRIDLINES)
         LISTVIEW_RefreshReportGrid(infoPtr, hdc);
 
     if (cdmode & CDRF_NOTIFYPOSTPAINT)
-- 
1.5.6.5




More information about the wine-patches mailing list