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
88f9fcf1
Commit
88f9fcf1
authored
Aug 05, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed nsAString handling in navigate_anchor.
parent
a61145f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
htmlanchor.c
dlls/mshtml/htmlanchor.c
+21
-20
No files found.
dlls/mshtml/htmlanchor.c
View file @
88f9fcf1
...
...
@@ -44,36 +44,37 @@ typedef struct {
static
HRESULT
navigate_anchor
(
HTMLAnchorElement
*
This
)
{
nsAString
href_str
,
target_str
;
const
PRUnichar
*
href
,
*
target
;
nsresult
nsres
;
HRESULT
hres
;
nsAString_Init
(
&
target_str
,
NULL
);
nsres
=
nsIDOMHTMLAnchorElement_GetTarget
(
This
->
nsanchor
,
&
target_str
);
if
(
NS_FAILED
(
nsres
))
return
E_FAIL
;
nsAString_GetData
(
&
target_str
,
&
target
);
if
(
*
target
)
{
FIXME
(
"Navigating to target %s is not implemented
\n
"
,
debugstr_w
(
target
));
nsAString_Finish
(
&
target_str
);
return
S_OK
;
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
target
;
nsAString_GetData
(
&
target_str
,
&
target
);
if
(
*
target
)
{
FIXME
(
"Navigating to target %s is not implemented
\n
"
,
debugstr_w
(
target
));
nsAString_Finish
(
&
target_str
);
return
S_OK
;
}
}
nsAString_Finish
(
&
target_str
);
nsAString_Init
(
&
href_str
,
NULL
);
nsres
=
nsIDOMHTMLAnchorElement_GetHref
(
This
->
nsanchor
,
&
href_str
);
if
(
NS_
FAILED
(
nsres
))
return
E_FAIL
;
if
(
NS_
SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
href
;
nsAString_GetData
(
&
href_str
,
&
href
);
if
(
*
href
)
{
HTMLWindow
*
window
=
This
->
element
.
node
.
doc
->
basedoc
.
window
;
hres
=
navigate_url
(
window
,
href
,
window
->
url
);
}
else
{
TRACE
(
"empty href
\n
"
);
hres
=
S_OK
;
nsAString_GetData
(
&
href_str
,
&
href
);
if
(
*
href
)
{
HTMLWindow
*
window
=
This
->
element
.
node
.
doc
->
basedoc
.
window
;
hres
=
navigate_url
(
window
,
href
,
window
->
url
);
}
else
{
TRACE
(
"empty href
\n
"
);
hres
=
S_OK
;
}
}
nsAString_Finish
(
&
href_str
);
return
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