Jon Griffiths <[EMAIL PROTECTED]> writes:

> @@ -2557,8 +2562,10 @@
>      infoPtr->items[iItem].iImage = pti->iImage;
>  
>    if (pti->mask & TCIF_PARAM)
> -    infoPtr->items[iItem].lParam = pti->lParam;
> -
> +    memcpy(&infoPtr->items[iItem].lParam, &pti->lParam, infoPtr->cbInfo);
> +  else
> +    memset(&infoPtr->items[iItem].lParam, 0, infoPtr->cbInfo);

That doesn't look right at all, lParam is not at the end of the
structure. And the variable-size info should really be a byte array or
something similar, not an LPARAM.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to