comctl32: Use struct member after check for NULL (Coverity).

This commit is contained in:
Paul Vriens 2006-07-15 20:27:24 +02:00 committed by Alexandre Julliard
parent c42415a547
commit 412aa2a10d

View File

@ -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)