From 412aa2a10df2a6e4922dab070de4a1e2d8607bf4 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 15 Jul 2006 20:27:24 +0200 Subject: [PATCH] comctl32: Use struct member after check for NULL (Coverity). --- dlls/comctl32/listview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index fb4ecf69c55..4d3819df62d 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5618,10 +5618,12 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp { POINT Position; LVITEMW lvItem; - INT nColumn = lprc->top; + INT nColumn; if (!lprc) return FALSE; + nColumn = lprc->top; + TRACE("(nItem=%d, nSubItem=%ld)\n", nItem, lprc->top); /* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */ if (lprc->top == 0)