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
159cc19b
Commit
159cc19b
authored
Jan 03, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow2::get_location implementation.
parent
b84fda83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+9
-2
dom.c
dlls/mshtml/tests/dom.c
+10
-1
No files found.
dlls/mshtml/htmlwindow.c
View file @
159cc19b
...
...
@@ -248,8 +248,15 @@ static HRESULT WINAPI HTMLWindow2_get_Image(IHTMLWindow2 *iface, IHTMLImageEleme
static
HRESULT
WINAPI
HTMLWindow2_get_location
(
IHTMLWindow2
*
iface
,
IHTMLLocation
**
p
)
{
HTMLWindow
*
This
=
HTMLWINDOW2_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
doc
)
{
FIXME
(
"This->doc is NULL
\n
"
);
return
E_FAIL
;
}
return
IHTMLDocument2_get_location
(
HTMLDOC
(
This
->
doc
),
p
);
}
static
HRESULT
WINAPI
HTMLWindow2_get_history
(
IHTMLWindow2
*
iface
,
IOmHistory
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
159cc19b
...
...
@@ -2185,6 +2185,7 @@ static void test_compatmode(IHTMLDocument2 *doc)
static
void
test_location
(
IHTMLDocument2
*
doc
)
{
IHTMLLocation
*
location
,
*
location2
;
IHTMLWindow2
*
window
;
ULONG
ref
;
HRESULT
hres
;
...
...
@@ -2195,10 +2196,18 @@ static void test_location(IHTMLDocument2 *doc)
ok
(
hres
==
S_OK
,
"get_location failed: %08x
\n
"
,
hres
);
ok
(
location
==
location2
,
"location != location2
\n
"
);
IHTMLLocation_Release
(
location2
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
hres
=
IHTMLWindow2_get_location
(
window
,
&
location2
);
ok
(
hres
==
S_OK
,
"get_location failed: %08x
\n
"
,
hres
);
ok
(
location
==
location2
,
"location != location2
\n
"
);
IHTMLLocation_Release
(
location2
);
test_ifaces
((
IUnknown
*
)
location
,
location_iids
);
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