comctl32: Just use 0 instead of casting NULL twice to an integer type.
This commit is contained in:
parent
9cafb9c168
commit
758f799205
|
@ -1220,7 +1220,7 @@ TREEVIEW_InsertItemT(TREEVIEW_INFO *infoPtr, const TVINSERTSTRUCTW *ptdi, BOOL i
|
||||||
if (!TREEVIEW_ValidItem(infoPtr, parentItem))
|
if (!TREEVIEW_ValidItem(infoPtr, parentItem))
|
||||||
{
|
{
|
||||||
WARN("invalid parent %p\n", parentItem);
|
WARN("invalid parent %p\n", parentItem);
|
||||||
return (LRESULT)(HTREEITEM)NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1251,13 +1251,13 @@ TREEVIEW_InsertItemT(TREEVIEW_INFO *infoPtr, const TVINSERTSTRUCTW *ptdi, BOOL i
|
||||||
|
|
||||||
newItem = TREEVIEW_AllocateItem(infoPtr);
|
newItem = TREEVIEW_AllocateItem(infoPtr);
|
||||||
if (newItem == NULL)
|
if (newItem == NULL)
|
||||||
return (LRESULT)(HTREEITEM)NULL;
|
return 0;
|
||||||
|
|
||||||
newItem->parent = parentItem;
|
newItem->parent = parentItem;
|
||||||
newItem->iIntegral = 1;
|
newItem->iIntegral = 1;
|
||||||
|
|
||||||
if (!TREEVIEW_DoSetItemT(infoPtr, newItem, tvItem, isW))
|
if (!TREEVIEW_DoSetItemT(infoPtr, newItem, tvItem, isW))
|
||||||
return (LRESULT)(HTREEITEM)NULL;
|
return 0;
|
||||||
|
|
||||||
/* After this point, nothing can fail. (Except for TVI_SORT.) */
|
/* After this point, nothing can fail. (Except for TVI_SORT.) */
|
||||||
|
|
||||||
|
@ -3461,14 +3461,14 @@ TREEVIEW_HitTest(const TREEVIEW_INFO *infoPtr, LPTVHITTESTINFO lpht)
|
||||||
if (status)
|
if (status)
|
||||||
{
|
{
|
||||||
lpht->flags = status;
|
lpht->flags = status;
|
||||||
return (LRESULT)(HTREEITEM)NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
wineItem = TREEVIEW_HitTestPoint(infoPtr, lpht->pt);
|
wineItem = TREEVIEW_HitTestPoint(infoPtr, lpht->pt);
|
||||||
if (!wineItem)
|
if (!wineItem)
|
||||||
{
|
{
|
||||||
lpht->flags = TVHT_NOWHERE;
|
lpht->flags = TVHT_NOWHERE;
|
||||||
return (LRESULT)(HTREEITEM)NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x >= wineItem->textOffset + wineItem->textWidth)
|
if (x >= wineItem->textOffset + wineItem->textWidth)
|
||||||
|
|
Loading…
Reference in New Issue