[PATCH 1/4] mshtml: Return E_POINTER when p is NULL in HTMLStyle_get_pixelLeft.

Jacek Caban jacek at codeweavers.com
Tue Sep 9 03:43:43 CDT 2014


Hi Jactry,

On 09/09/14 08:06, Jactry Zeng wrote:
> diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
> index f098cb0..9469243 100644
> --- a/dlls/mshtml/htmlstyle.c
> +++ b/dlls/mshtml/htmlstyle.c
> @@ -2482,6 +2482,8 @@ static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, LONG *p)
>      HTMLStyle *This = impl_from_IHTMLStyle(iface);
>  
>      TRACE("(%p)->(%p)\n", This, p);
> +    if(!p)
> +        return E_POINTER;

Since you're adding those checks to many functions, it would probably
make sense to move that to get_nsstyle_pixel_val.

Jacek



More information about the wine-devel mailing list