Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4a13190d
Commit
4a13190d
authored
Nov 22, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store IOleAdviseHolder in HTMLDocumentObj instead of HTMLDocument.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
567ad033
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
oleobj.c
dlls/mshtml/oleobj.c
+10
-10
No files found.
dlls/mshtml/htmldoc.c
View file @
4a13190d
...
...
@@ -5274,8 +5274,8 @@ static ULONG WINAPI HTMLDocumentObj_Release(IUnknown *iface)
This
->
basedoc
.
window
->
doc_obj
=
NULL
;
IHTMLWindow2_Release
(
&
This
->
basedoc
.
window
->
base
.
IHTMLWindow2_iface
);
}
if
(
This
->
basedoc
.
advise_holder
)
IOleAdviseHolder_Release
(
This
->
basedoc
.
advise_holder
);
if
(
This
->
advise_holder
)
IOleAdviseHolder_Release
(
This
->
advise_holder
);
if
(
This
->
view_sink
)
IAdviseSink_Release
(
This
->
view_sink
);
...
...
dlls/mshtml/mshtml_private.h
View file @
4a13190d
...
...
@@ -605,7 +605,6 @@ struct HTMLDocument {
LONG
task_magic
;
ConnectionPointContainer
cp_container
;
IOleAdviseHolder
*
advise_holder
;
};
static
inline
HRESULT
htmldoc_query_interface
(
HTMLDocument
*
This
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -648,6 +647,7 @@ struct HTMLDocumentObj {
IUnknown
*
webbrowser
;
ITravelLog
*
travel_log
;
IUnknown
*
browser_service
;
IOleAdviseHolder
*
advise_holder
;
DOCHOSTUIINFO
hostinfo
;
...
...
dlls/mshtml/oleobj.c
View file @
4a13190d
...
...
@@ -490,8 +490,8 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
HTMLDocument_LockContainer
(
This
->
doc_obj
,
FALSE
);
if
(
This
->
advise_holder
)
IOleAdviseHolder_SendOnClose
(
This
->
advise_holder
);
if
(
This
->
doc_obj
->
advise_holder
)
IOleAdviseHolder_SendOnClose
(
This
->
doc_obj
->
advise_holder
);
return
S_OK
;
}
...
...
@@ -632,13 +632,13 @@ static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink,
return
E_INVALIDARG
;
}
if
(
!
This
->
advise_holder
)
{
CreateOleAdviseHolder
(
&
This
->
advise_holder
);
if
(
!
This
->
advise_holder
)
if
(
!
This
->
doc_obj
->
advise_holder
)
{
CreateOleAdviseHolder
(
&
This
->
doc_obj
->
advise_holder
);
if
(
!
This
->
doc_obj
->
advise_holder
)
return
E_OUTOFMEMORY
;
}
return
IOleAdviseHolder_Advise
(
This
->
advise_holder
,
pAdvSink
,
pdwConnection
);
return
IOleAdviseHolder_Advise
(
This
->
doc_obj
->
advise_holder
,
pAdvSink
,
pdwConnection
);
}
static
HRESULT
WINAPI
OleObject_Unadvise
(
IOleObject
*
iface
,
DWORD
dwConnection
)
...
...
@@ -646,22 +646,22 @@ static HRESULT WINAPI OleObject_Unadvise(IOleObject *iface, DWORD dwConnection)
HTMLDocument
*
This
=
impl_from_IOleObject
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
dwConnection
);
if
(
!
This
->
advise_holder
)
if
(
!
This
->
doc_obj
->
advise_holder
)
return
OLE_E_NOCONNECTION
;
return
IOleAdviseHolder_Unadvise
(
This
->
advise_holder
,
dwConnection
);
return
IOleAdviseHolder_Unadvise
(
This
->
doc_obj
->
advise_holder
,
dwConnection
);
}
static
HRESULT
WINAPI
OleObject_EnumAdvise
(
IOleObject
*
iface
,
IEnumSTATDATA
**
ppenumAdvise
)
{
HTMLDocument
*
This
=
impl_from_IOleObject
(
iface
);
if
(
!
This
->
advise_holder
)
{
if
(
!
This
->
doc_obj
->
advise_holder
)
{
*
ppenumAdvise
=
NULL
;
return
S_OK
;
}
return
IOleAdviseHolder_EnumAdvise
(
This
->
advise_holder
,
ppenumAdvise
);
return
IOleAdviseHolder_EnumAdvise
(
This
->
doc_obj
->
advise_holder
,
ppenumAdvise
);
}
static
HRESULT
WINAPI
OleObject_GetMiscStatus
(
IOleObject
*
iface
,
DWORD
dwAspect
,
DWORD
*
pdwStatus
)
...
...
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