Module: wine Branch: master Commit: bf61677998a6c721b661b3fa6da4963cbaa7128f URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf61677998a6c721b661b3fa6d...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sun Apr 26 12:33:14 2009 +0400
comctl32/listview: 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)