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
447e5d1f
Commit
447e5d1f
authored
Aug 16, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLLocation get_href.
parent
d6493200
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
htmllocation.c
dlls/mshtml/htmllocation.c
+14
-2
dom.c
dlls/mshtml/tests/dom.c
+7
-0
No files found.
dlls/mshtml/htmllocation.c
View file @
447e5d1f
...
...
@@ -128,8 +128,20 @@ static HRESULT WINAPI HTMLLocation_put_href(IHTMLLocation *iface, BSTR v)
static
HRESULT
WINAPI
HTMLLocation_get_href
(
IHTMLLocation
*
iface
,
BSTR
*
p
)
{
HTMLLocation
*
This
=
HTMLLOCATION_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_POINTER
;
if
(
!
This
->
doc
||
!
This
->
doc
->
url
)
{
FIXME
(
"No current URL
\n
"
);
return
E_NOTIMPL
;
}
*
p
=
SysAllocString
(
This
->
doc
->
url
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLLocation_put_protocol
(
IHTMLLocation
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
447e5d1f
...
...
@@ -2411,6 +2411,13 @@ static void test_location(IHTMLDocument2 *doc)
ok
(
hres
==
S_OK
,
"get_pathname failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"blank"
),
"unexpected pathname %s
\n
"
,
dbgstr_w
(
str
));
hres
=
IHTMLLocation_get_href
(
location
,
NULL
);
ok
(
hres
==
E_POINTER
,
"get_href passed: %08x
\n
"
,
hres
);
hres
=
IHTMLLocation_get_href
(
location
,
&
str
);
ok
(
hres
==
S_OK
,
"get_href failed: %08x
\n
"
,
hres
);
ok
(
!
strcmp_wa
(
str
,
"about:blank"
),
"unexpected href %s
\n
"
,
dbgstr_w
(
str
));
ref
=
IHTMLLocation_Release
(
location
);
ok
(
!
ref
,
"location chould be destroyed here
\n
"
);
}
...
...
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