comctl32: Use struct member after check for NULL (Coverity).
This commit is contained in:
parent
c42415a547
commit
412aa2a10d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue