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
79598c48
Commit
79598c48
authored
Oct 14, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Call the cache's OnRun and OnStop methods.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e4ec89f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
defaulthandler.c
dlls/ole32/defaulthandler.c
+17
-3
No files found.
dlls/ole32/defaulthandler.c
View file @
79598c48
...
...
@@ -459,12 +459,20 @@ static void release_delegates(DefaultHandler *This)
/* undoes the work done by DefaultHandler_Run */
static
void
DefaultHandler_Stop
(
DefaultHandler
*
This
)
{
IOleCacheControl
*
cache_ctrl
;
HRESULT
hr
;
if
(
!
object_is_running
(
This
))
return
;
IOleObject_Unadvise
(
This
->
pOleDelegate
,
This
->
dwAdvConn
);
hr
=
IUnknown_QueryInterface
(
This
->
dataCache
,
&
IID_IOleCacheControl
,
(
void
**
)
&
cache_ctrl
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IOleCacheControl_OnStop
(
cache_ctrl
);
IOleCacheControl_Release
(
cache_ctrl
);
}
/* FIXME: call IOleCache_OnStop */
IOleObject_Unadvise
(
This
->
pOleDelegate
,
This
->
dwAdvConn
);
if
(
This
->
dataAdviseHolder
)
DataAdviseHolder_OnDisconnect
(
This
->
dataAdviseHolder
);
...
...
@@ -1331,6 +1339,7 @@ static HRESULT WINAPI DefaultHandler_Run(
{
DefaultHandler
*
This
=
impl_from_IRunnableObject
(
iface
);
HRESULT
hr
;
IOleCacheControl
*
cache_ctrl
;
FIXME
(
"(%p): semi-stub
\n
"
,
pbc
);
...
...
@@ -1374,7 +1383,6 @@ static HRESULT WINAPI DefaultHandler_Run(
/* FIXME: do more stuff here:
* - IOleObject_GetMiscStatus
* - IOleObject_GetMoniker
* - IOleCache_OnRun
*/
hr
=
IOleObject_QueryInterface
(
This
->
pOleDelegate
,
&
IID_IDataObject
,
...
...
@@ -1389,6 +1397,12 @@ static HRESULT WINAPI DefaultHandler_Run(
if
(
FAILED
(
hr
))
goto
fail
;
}
hr
=
IUnknown_QueryInterface
(
This
->
dataCache
,
&
IID_IOleCacheControl
,
(
void
**
)
&
cache_ctrl
);
if
(
FAILED
(
hr
))
goto
fail
;
hr
=
IOleCacheControl_OnRun
(
cache_ctrl
,
This
->
pDataDelegate
);
IOleCacheControl_Release
(
cache_ctrl
);
if
(
FAILED
(
hr
))
goto
fail
;
return
hr
;
fail:
...
...
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