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
4fcc5fec
Commit
4fcc5fec
authored
Oct 14, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Always use object_is_running to check whether the object is running.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a56a0eb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
defaulthandler.c
dlls/ole32/defaulthandler.c
+6
-6
No files found.
dlls/ole32/defaulthandler.c
View file @
4fcc5fec
...
...
@@ -1021,7 +1021,7 @@ static HRESULT WINAPI DefaultHandler_GetData(
IDataObject_Release
(
cacheDataObject
);
if
(
FAILED
(
hres
)
&&
This
->
pDataDelegate
)
if
(
FAILED
(
hres
)
&&
object_is_running
(
This
)
)
hres
=
IDataObject_GetData
(
This
->
pDataDelegate
,
pformatetcIn
,
pmedium
);
return
hres
;
...
...
@@ -1067,7 +1067,7 @@ static HRESULT WINAPI DefaultHandler_QueryGetData(
IDataObject_Release
(
cacheDataObject
);
if
(
FAILED
(
hres
)
&&
This
->
pDataDelegate
)
if
(
FAILED
(
hres
)
&&
object_is_running
(
This
)
)
hres
=
IDataObject_QueryGetData
(
This
->
pDataDelegate
,
pformatetc
);
return
hres
;
...
...
@@ -1089,7 +1089,7 @@ static HRESULT WINAPI DefaultHandler_GetCanonicalFormatEtc(
TRACE
(
"(%p, %p, %p)
\n
"
,
iface
,
pformatetcIn
,
pformatetcOut
);
if
(
!
This
->
pDataDelegate
)
if
(
!
object_is_running
(
This
)
)
return
OLE_E_NOTRUNNING
;
return
IDataObject_GetCanonicalFormatEtc
(
This
->
pDataDelegate
,
pformatetcIn
,
pformatetcOut
);
...
...
@@ -1177,7 +1177,7 @@ static HRESULT WINAPI DefaultHandler_DAdvise(
if
(
!
This
->
dataAdviseHolder
)
{
hres
=
CreateDataAdviseHolder
(
&
This
->
dataAdviseHolder
);
if
(
SUCCEEDED
(
hres
)
&&
This
->
pDataDelegate
)
if
(
SUCCEEDED
(
hres
)
&&
object_is_running
(
This
)
)
DataAdviseHolder_OnConnect
(
This
->
dataAdviseHolder
,
This
->
pDataDelegate
);
}
...
...
@@ -1327,8 +1327,6 @@ static HRESULT WINAPI DefaultHandler_Run(
if
(
FAILED
(
hr
))
return
hr
;
This
->
object_state
=
object_state_running
;
hr
=
IOleObject_Advise
(
This
->
pOleDelegate
,
&
This
->
IAdviseSink_iface
,
&
This
->
dwAdvConn
);
if
(
FAILED
(
hr
))
goto
fail
;
...
...
@@ -1365,6 +1363,8 @@ static HRESULT WINAPI DefaultHandler_Run(
(
void
**
)
&
This
->
pDataDelegate
);
if
(
FAILED
(
hr
))
goto
fail
;
This
->
object_state
=
object_state_running
;
if
(
This
->
dataAdviseHolder
)
{
hr
=
DataAdviseHolder_OnConnect
(
This
->
dataAdviseHolder
,
This
->
pDataDelegate
);
...
...
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