mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-10 01:17:43 +00:00
mshtml: Return E_POINTER when p is NULL in get_nsstyle_pixel_val.
This commit is contained in:
parent
0cab370d11
commit
387257dd2c
|
@ -684,6 +684,9 @@ static HRESULT get_nsstyle_pixel_val(HTMLStyle *This, styleid_t sid, LONG *p)
|
|||
nsAString str_value;
|
||||
HRESULT hres;
|
||||
|
||||
if(!p)
|
||||
return E_POINTER;
|
||||
|
||||
nsAString_Init(&str_value, NULL);
|
||||
|
||||
hres = get_nsstyle_attr_nsval(This->nsstyle, sid, &str_value);
|
||||
|
|
|
@ -1164,6 +1164,9 @@ static void test_body_style(IHTMLStyle *style)
|
|||
ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres);
|
||||
ok(l == 6, "pixelLeft = %d\n", l);
|
||||
|
||||
hres = IHTMLStyle_get_pixelLeft(style, NULL);
|
||||
ok(hres == E_POINTER, "get_pixelLeft failed: %08x\n", hres);
|
||||
|
||||
V_VT(&v) = VT_EMPTY;
|
||||
hres = IHTMLStyle_get_left(style, &v);
|
||||
ok(hres == S_OK, "get_left failed: %08x\n", hres);
|
||||
|
|
Loading…
Reference in a new issue