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
bbfa604d
Commit
bbfa604d
authored
Dec 07, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added OleObject_Advise implementation.
parent
45e0dd9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
oleobj.c
dlls/mshtml/oleobj.c
+17
-2
No files found.
dlls/mshtml/htmldoc.c
View file @
bbfa604d
...
...
@@ -1951,6 +1951,8 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
This
->
basedoc
.
window
->
doc_obj
=
NULL
;
IHTMLWindow2_Release
(
HTMLWINDOW2
(
This
->
basedoc
.
window
));
}
if
(
This
->
basedoc
.
advise_holder
)
IOleAdviseHolder_Release
(
This
->
basedoc
.
advise_holder
);
if
(
This
->
client
)
IOleObject_SetClientSite
(
OLEOBJ
(
&
This
->
basedoc
),
NULL
);
...
...
dlls/mshtml/mshtml_private.h
View file @
bbfa604d
...
...
@@ -338,6 +338,8 @@ struct HTMLDocument {
ConnectionPoint
cp_htmldocevents
;
ConnectionPoint
cp_htmldocevents2
;
ConnectionPoint
cp_propnotif
;
IOleAdviseHolder
*
advise_holder
;
};
static
inline
HRESULT
htmldoc_query_interface
(
HTMLDocument
*
This
,
REFIID
riid
,
void
**
ppv
)
...
...
dlls/mshtml/oleobj.c
View file @
bbfa604d
...
...
@@ -380,8 +380,23 @@ static HRESULT WINAPI OleObject_GetExtent(IOleObject *iface, DWORD dwDrawAspect,
static
HRESULT
WINAPI
OleObject_Advise
(
IOleObject
*
iface
,
IAdviseSink
*
pAdvSink
,
DWORD
*
pdwConnection
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
pAdvSink
,
pdwConnection
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
pAdvSink
,
pdwConnection
);
if
(
!
pdwConnection
)
return
E_INVALIDARG
;
if
(
!
pAdvSink
)
{
*
pdwConnection
=
0
;
return
E_INVALIDARG
;
}
if
(
!
This
->
advise_holder
)
{
CreateOleAdviseHolder
(
&
This
->
advise_holder
);
if
(
!
This
->
advise_holder
)
return
E_OUTOFMEMORY
;
}
return
IOleAdviseHolder_Advise
(
This
->
advise_holder
,
pAdvSink
,
pdwConnection
);
}
static
HRESULT
WINAPI
OleObject_Unadvise
(
IOleObject
*
iface
,
DWORD
dwConnection
)
...
...
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