Return false if index is out of bounds in GetItemT.
This commit is contained in:
parent
82f403bd66
commit
def2bb6798
|
@ -813,10 +813,9 @@ HEADER_GetItemT (HWND hwnd, INT nItem, LPHDITEMW phdi, BOOL bUnicode)
|
|||
|
||||
if (phdi->mask == 0)
|
||||
return TRUE;
|
||||
|
||||
if ((nItem < 0) || (nItem >= (INT)infoPtr->uNumItem))
|
||||
lpItem = NULL;
|
||||
else
|
||||
return FALSE;
|
||||
|
||||
lpItem = &infoPtr->items[nItem];
|
||||
|
||||
if (phdi->mask & HDI_BITMAP)
|
||||
|
|
Loading…
Reference in New Issue