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
c4fe86da
Commit
c4fe86da
authored
Mar 16, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLStorage object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e1d876d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
htmlstorage.c
dlls/mshtml/htmlstorage.c
+2
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+4
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
No files found.
dlls/mshtml/htmlstorage.c
View file @
c4fe86da
...
@@ -197,7 +197,7 @@ static dispex_static_data_t HTMLStorage_dispex = {
...
@@ -197,7 +197,7 @@ static dispex_static_data_t HTMLStorage_dispex = {
HTMLStorage_iface_tids
HTMLStorage_iface_tids
};
};
HRESULT
create_
storage
(
IHTMLStorage
**
p
)
HRESULT
create_
html_storage
(
compat_mode_t
compat_mode
,
IHTMLStorage
**
p
)
{
{
HTMLStorage
*
storage
;
HTMLStorage
*
storage
;
...
@@ -207,7 +207,7 @@ HRESULT create_storage(IHTMLStorage **p)
...
@@ -207,7 +207,7 @@ HRESULT create_storage(IHTMLStorage **p)
storage
->
IHTMLStorage_iface
.
lpVtbl
=
&
HTMLStorageVtbl
;
storage
->
IHTMLStorage_iface
.
lpVtbl
=
&
HTMLStorageVtbl
;
storage
->
ref
=
1
;
storage
->
ref
=
1
;
init_dispex
(
&
storage
->
dispex
,
(
IUnknown
*
)
&
storage
->
IHTMLStorage_iface
,
&
HTMLStorage_dispex
);
init_dispex
_with_compat_mode
(
&
storage
->
dispex
,
(
IUnknown
*
)
&
storage
->
IHTMLStorage_iface
,
&
HTMLStorage_dispex
,
compat_mode
);
*
p
=
&
storage
->
IHTMLStorage_iface
;
*
p
=
&
storage
->
IHTMLStorage_iface
;
return
S_OK
;
return
S_OK
;
...
...
dlls/mshtml/htmlwindow.c
View file @
c4fe86da
...
@@ -2137,7 +2137,8 @@ static HRESULT WINAPI HTMLWindow6_get_sessionStorage(IHTMLWindow6 *iface, IHTMLS
...
@@ -2137,7 +2137,8 @@ static HRESULT WINAPI HTMLWindow6_get_sessionStorage(IHTMLWindow6 *iface, IHTMLS
if
(
!
This
->
inner_window
->
session_storage
)
{
if
(
!
This
->
inner_window
->
session_storage
)
{
HRESULT
hres
;
HRESULT
hres
;
hres
=
create_storage
(
&
This
->
inner_window
->
session_storage
);
hres
=
create_html_storage
(
dispex_compat_mode
(
&
This
->
inner_window
->
event_target
.
dispex
),
&
This
->
inner_window
->
session_storage
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
}
}
...
@@ -2156,7 +2157,8 @@ static HRESULT WINAPI HTMLWindow6_get_localStorage(IHTMLWindow6 *iface, IHTMLSto
...
@@ -2156,7 +2157,8 @@ static HRESULT WINAPI HTMLWindow6_get_localStorage(IHTMLWindow6 *iface, IHTMLSto
if
(
!
This
->
inner_window
->
local_storage
)
{
if
(
!
This
->
inner_window
->
local_storage
)
{
HRESULT
hres
;
HRESULT
hres
;
hres
=
create_storage
(
&
This
->
inner_window
->
local_storage
);
hres
=
create_html_storage
(
dispex_compat_mode
(
&
This
->
inner_window
->
event_target
.
dispex
),
&
This
->
inner_window
->
local_storage
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
}
}
...
...
dlls/mshtml/mshtml_private.h
View file @
c4fe86da
...
@@ -919,7 +919,7 @@ HRESULT create_namespace_collection(compat_mode_t,IHTMLNamespaceCollection**) DE
...
@@ -919,7 +919,7 @@ HRESULT create_namespace_collection(compat_mode_t,IHTMLNamespaceCollection**) DE
HRESULT
create_dom_implementation
(
HTMLDocumentNode
*
,
IHTMLDOMImplementation
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_dom_implementation
(
HTMLDocumentNode
*
,
IHTMLDOMImplementation
**
)
DECLSPEC_HIDDEN
;
void
detach_dom_implementation
(
IHTMLDOMImplementation
*
)
DECLSPEC_HIDDEN
;
void
detach_dom_implementation
(
IHTMLDOMImplementation
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_
storage
(
IHTMLStorage
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_
html_storage
(
compat_mode_t
,
IHTMLStorage
**
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_OleCmd_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
void
HTMLDocument_OleCmd_Init
(
HTMLDocument
*
)
DECLSPEC_HIDDEN
;
...
...
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