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
f58b963f
Commit
f58b963f
authored
Jun 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow2::get_self implementation.
parent
ebb4a9b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+7
-2
dom.c
dlls/mshtml/tests/dom.c
+15
-1
No files found.
dlls/mshtml/htmlwindow.c
View file @
f58b963f
...
...
@@ -321,8 +321,13 @@ static HRESULT WINAPI HTMLWindow2_open(IHTMLWindow2 *iface, BSTR url, BSTR name,
static
HRESULT
WINAPI
HTMLWindow2_get_self
(
IHTMLWindow2
*
iface
,
IHTMLWindow2
**
p
)
{
HTMLWindow
*
This
=
HTMLWINDOW2_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
/* FIXME: We should return kind of proxy window here. */
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
This
));
*
p
=
HTMLWINDOW2
(
This
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLWindow2_get_top
(
IHTMLWindow2
*
iface
,
IHTMLWindow2
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
f58b963f
...
...
@@ -1821,7 +1821,7 @@ static void test_default_body(IHTMLBodyElement *body)
static
void
test_window
(
IHTMLDocument2
*
doc
)
{
IHTMLWindow2
*
window
;
IHTMLWindow2
*
window
,
*
window2
,
*
self
;
IHTMLDocument2
*
doc2
=
NULL
;
HRESULT
hres
;
...
...
@@ -1835,6 +1835,20 @@ static void test_window(IHTMLDocument2 *doc)
ok
(
doc2
!=
NULL
,
"doc2 == NULL
\n
"
);
IHTMLDocument_Release
(
doc2
);
hres
=
IHTMLWindow2_get_window
(
window
,
&
window2
);
ok
(
hres
==
S_OK
,
"get_window failed: %08x
\n
"
,
hres
);
ok
(
window2
!=
NULL
,
"window2 == NULL
\n
"
);
hres
=
IHTMLWindow2_get_self
(
window
,
&
self
);
ok
(
hres
==
S_OK
,
"get_window failed: %08x
\n
"
,
hres
);
ok
(
window2
!=
NULL
,
"self == NULL
\n
"
);
ok
(
self
==
window2
,
"self != window2
\n
"
);
IHTMLWindow2_Release
(
window2
);
IHTMLWindow2_Release
(
self
);
IHTMLWindow2_Release
(
window
);
}
...
...
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