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
196f13c1
Commit
196f13c1
authored
Aug 23, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle S_FALSE from IUri methods in Anchor Elements.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
1e6c1851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
htmlanchor.c
dlls/mshtml/htmlanchor.c
+9
-0
dom.c
dlls/mshtml/tests/dom.c
+6
-0
No files found.
dlls/mshtml/htmlanchor.c
View file @
196f13c1
...
...
@@ -517,6 +517,10 @@ static HRESULT WINAPI HTMLAnchorElement_get_port(IHTMLAnchorElement *iface, BSTR
IUri_Release
(
uri
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
hres
!=
S_OK
)
{
*
p
=
NULL
;
return
S_OK
;
}
len
=
swprintf
(
buf
,
ARRAY_SIZE
(
buf
),
L"%u"
,
port
);
str
=
SysAllocStringLen
(
buf
,
len
);
...
...
@@ -556,6 +560,11 @@ static HRESULT WINAPI HTMLAnchorElement_get_protocol(IHTMLAnchorElement *iface,
IUri_Release
(
uri
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
hres
!=
S_OK
)
{
SysFreeString
(
scheme
);
*
p
=
NULL
;
return
S_OK
;
}
len
=
SysStringLen
(
scheme
);
if
(
len
)
{
...
...
dlls/mshtml/tests/dom.c
View file @
196f13c1
...
...
@@ -9479,6 +9479,12 @@ static void test_elems(IHTMLDocument2 *doc)
test_anchor_hostname
((
IUnknown
*
)
elem
,
L"test1"
);
test_anchor_port
((
IUnknown
*
)
elem
,
L"8080"
);
/* about:blank */
test_anchor_put_href
((
IUnknown
*
)
elem
,
L"about:blank"
);
test_anchor_href
((
IUnknown
*
)
elem
,
L"about:blank"
);
test_anchor_hostname
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_port
((
IUnknown
*
)
elem
,
NULL
);
/* Restore the href */
test_anchor_put_href
((
IUnknown
*
)
elem
,
L"http://test/"
);
test_anchor_href
((
IUnknown
*
)
elem
,
L"http://test/"
);
...
...
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