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
1 changed files with 3 additions and 1 deletions

View File

@ -5618,10 +5618,12 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
{ {
POINT Position; POINT Position;
LVITEMW lvItem; LVITEMW lvItem;
INT nColumn = lprc->top; INT nColumn;
if (!lprc) return FALSE; if (!lprc) return FALSE;
nColumn = lprc->top;
TRACE("(nItem=%d, nSubItem=%ld)\n", nItem, lprc->top); TRACE("(nItem=%d, nSubItem=%ld)\n", nItem, lprc->top);
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */ /* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
if (lprc->top == 0) if (lprc->top == 0)