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
125c390f
Commit
125c390f
authored
Oct 05, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Oct 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Implement IEHTMLWindow2_get_document.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
e3c768ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
iehtmlwnd.c
dlls/ieframe/iehtmlwnd.c
+35
-2
No files found.
dlls/ieframe/iehtmlwnd.c
View file @
125c390f
...
...
@@ -22,6 +22,25 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ieframe
);
HRESULT
get_window
(
DocHost
*
doc_host
,
IHTMLWindow2
**
ret
)
{
IHTMLDocument2
*
doc_obj
;
HRESULT
hres
;
if
(
!
doc_host
->
document
)
{
*
ret
=
NULL
;
return
S_OK
;
}
hres
=
IUnknown_QueryInterface
(
doc_host
->
document
,
&
IID_IHTMLDocument2
,
(
void
**
)
&
doc_obj
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IHTMLDocument2_get_parentWindow
(
doc_obj
,
ret
);
IHTMLDocument2_Release
(
doc_obj
);
return
hres
;
}
static
inline
IEHTMLWindow
*
impl_from_IHTMLWindow2
(
IHTMLWindow2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IEHTMLWindow
,
IHTMLWindow2_iface
);
...
...
@@ -432,8 +451,22 @@ static HRESULT WINAPI IEHTMLWindow2_get_onscroll(IHTMLWindow2 *iface, VARIANT *p
static
HRESULT
WINAPI
IEHTMLWindow2_get_document
(
IHTMLWindow2
*
iface
,
IHTMLDocument2
**
p
)
{
IEHTMLWindow
*
This
=
impl_from_IHTMLWindow2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
IHTMLWindow2
*
window
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
hres
=
get_window
(
This
->
doc_host
,
&
window
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
!
window
)
*
p
=
NULL
;
else
{
hres
=
IHTMLWindow2_get_document
(
window
,
p
);
IHTMLWindow2_Release
(
window
);
}
return
hres
;
}
static
HRESULT
WINAPI
IEHTMLWindow2_get_event
(
IHTMLWindow2
*
iface
,
IHTMLEventObj
**
p
)
...
...
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