Commit ddf0049e authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comctl32/header: Check Null before accessing struct member.

parent f21983cf
......@@ -1141,15 +1141,17 @@ HEADER_GetItemT (HWND hwnd, INT nItem, LPHDITEMW phdi, BOOL bUnicode)
{
HEADER_INFO *infoPtr = HEADER_GetInfoPtr (hwnd);
HEADER_ITEM *lpItem;
UINT mask = phdi->mask;
UINT mask;
if (!phdi)
return FALSE;
TRACE("[nItem=%d]\n", nItem);
mask = phdi->mask;
if (mask == 0)
return TRUE;
if ((nItem < 0) || (nItem >= (INT)infoPtr->uNumItem))
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment