Commit 6f05fd2d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tab: Remove dead parameter check code.

parent b0952c95
......@@ -2722,7 +2722,7 @@ TAB_HighlightItem (TAB_INFO *infoPtr, INT iItem, BOOL fHighlight)
TRACE("(%p,%d,%s)\n", infoPtr, iItem, fHighlight ? "true" : "false");
if (!infoPtr || iItem < 0 || iItem >= infoPtr->uNumItem)
if (iItem < 0 || iItem >= infoPtr->uNumItem)
return FALSE;
lpState = &TAB_GetItem(infoPtr, iItem)->dwState;
......@@ -3100,9 +3100,6 @@ TAB_Destroy (TAB_INFO *infoPtr)
{
UINT iItem;
if (!infoPtr)
return 0;
SetWindowLongPtrW(infoPtr->hwnd, 0, 0);
if (infoPtr->items) {
......@@ -3146,7 +3143,7 @@ static LRESULT TAB_NCCalcSize(WPARAM wParam)
static inline LRESULT
TAB_SetItemExtra (TAB_INFO *infoPtr, INT cbInfo)
{
if (!infoPtr || cbInfo <= 0)
if (cbInfo <= 0)
return FALSE;
if (infoPtr->uNumItem)
......@@ -3161,9 +3158,6 @@ TAB_SetItemExtra (TAB_INFO *infoPtr, INT cbInfo)
static LRESULT TAB_RemoveImage (TAB_INFO *infoPtr, INT image)
{
if (!infoPtr)
return 0;
if (ImageList_Remove (infoPtr->himl, image))
{
INT i, *idx;
......@@ -3334,7 +3328,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return TAB_InsertItemT (infoPtr, wParam, lParam, uMsg == TCM_INSERTITEMW);
case TCM_SETITEMEXTRA:
return TAB_SetItemExtra (infoPtr, (int)wParam);
return TAB_SetItemExtra (infoPtr, (INT)wParam);
case TCM_ADJUSTRECT:
return TAB_AdjustRect (infoPtr, (BOOL)wParam, (LPRECT)lParam);
......
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