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
16b4bc23
Commit
16b4bc23
authored
Mar 12, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLScreen object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a2e4ee23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
omnavigator.c
dlls/mshtml/omnavigator.c
+2
-2
No files found.
dlls/mshtml/htmlwindow.c
View file @
16b4bc23
...
...
@@ -1305,7 +1305,7 @@ static HRESULT WINAPI HTMLWindow2_get_screen(IHTMLWindow2 *iface, IHTMLScreen **
if
(
!
window
->
screen
)
{
HRESULT
hres
;
hres
=
HTMLScreen_Create
(
&
window
->
screen
);
hres
=
create_html_screen
(
dispex_compat_mode
(
&
window
->
event_target
.
dispex
),
&
window
->
screen
);
if
(
FAILED
(
hres
))
return
hres
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
16b4bc23
...
...
@@ -911,7 +911,7 @@ HRESULT HTMLImageElementFactory_Create(HTMLInnerWindow*,HTMLImageElementFactory*
HRESULT
HTMLXMLHttpRequestFactory_Create
(
HTMLInnerWindow
*
,
HTMLXMLHttpRequestFactory
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLLocation_Create
(
HTMLInnerWindow
*
,
HTMLLocation
**
)
DECLSPEC_HIDDEN
;
IOmNavigator
*
OmNavigator_Create
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLScreen_Create
(
IHTMLScreen
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_html_screen
(
compat_mode_t
,
IHTMLScreen
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_performance
(
IHTMLPerformance
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_history
(
HTMLInnerWindow
*
,
OmHistory
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_namespace_collection
(
IHTMLNamespaceCollection
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/omnavigator.c
View file @
16b4bc23
...
...
@@ -561,7 +561,7 @@ static dispex_static_data_t HTMLScreen_dispex = {
HTMLScreen_iface_tids
};
HRESULT
HTMLScreen_Create
(
IHTMLScreen
**
ret
)
HRESULT
create_html_screen
(
compat_mode_t
compat_mode
,
IHTMLScreen
**
ret
)
{
HTMLScreen
*
screen
;
...
...
@@ -572,7 +572,7 @@ HRESULT HTMLScreen_Create(IHTMLScreen **ret)
screen
->
IHTMLScreen_iface
.
lpVtbl
=
&
HTMLSreenVtbl
;
screen
->
ref
=
1
;
init_dispex
(
&
screen
->
dispex
,
(
IUnknown
*
)
&
screen
->
IHTMLScreen_iface
,
&
HTMLScreen_dispex
);
init_dispex
_with_compat_mode
(
&
screen
->
dispex
,
(
IUnknown
*
)
&
screen
->
IHTMLScreen_iface
,
&
HTMLScreen_dispex
,
compat_mode
);
*
ret
=
&
screen
->
IHTMLScreen_iface
;
return
S_OK
;
...
...
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