Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
387257dd
Commit
387257dd
authored
Sep 09, 2014
by
Jactry Zeng
Committed by
Alexandre Julliard
Sep 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return E_POINTER when p is NULL in get_nsstyle_pixel_val.
parent
0cab370d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
htmlstyle.c
dlls/mshtml/htmlstyle.c
+3
-0
style.c
dlls/mshtml/tests/style.c
+3
-0
No files found.
dlls/mshtml/htmlstyle.c
View file @
387257dd
...
...
@@ -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
);
...
...
dlls/mshtml/tests/style.c
View file @
387257dd
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment