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
a56a0eb0
Commit
a56a0eb0
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: Rewrite _Run() to return early on failure.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e6042cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
+29
-23
defaulthandler.c
dlls/ole32/defaulthandler.c
+29
-23
No files found.
dlls/ole32/defaulthandler.c
View file @
a56a0eb0
...
...
@@ -1330,26 +1330,30 @@ static HRESULT WINAPI DefaultHandler_Run(
This
->
object_state
=
object_state_running
;
hr
=
IOleObject_Advise
(
This
->
pOleDelegate
,
&
This
->
IAdviseSink_iface
,
&
This
->
dwAdvConn
);
if
(
FAILED
(
hr
))
goto
fail
;
if
(
SUCCEEDED
(
hr
)
&&
This
->
clientSite
)
hr
=
IOleObject_SetClientSite
(
This
->
pOleDelegate
,
This
->
clientSite
);
if
(
SUCCEEDED
(
hr
))
if
(
This
->
clientSite
)
{
IOleObject_QueryInterface
(
This
->
pOleDelegate
,
&
IID_IPersistStorage
,
(
void
**
)
&
This
->
pPSDelegate
);
if
(
This
->
pPSDelegate
)
{
if
(
This
->
storage_state
==
storage_state_initialised
)
hr
=
IPersistStorage_InitNew
(
This
->
pPSDelegate
,
This
->
storage
);
else
if
(
This
->
storage_state
==
storage_state_loaded
)
hr
=
IPersistStorage_Load
(
This
->
pPSDelegate
,
This
->
storage
);
}
hr
=
IOleObject_SetClientSite
(
This
->
pOleDelegate
,
This
->
clientSite
);
if
(
FAILED
(
hr
))
goto
fail
;
}
if
(
SUCCEEDED
(
hr
)
&&
This
->
containerApp
)
hr
=
IOleObject_QueryInterface
(
This
->
pOleDelegate
,
&
IID_IPersistStorage
,
(
void
**
)
&
This
->
pPSDelegate
);
if
(
FAILED
(
hr
))
goto
fail
;
if
(
This
->
storage_state
==
storage_state_initialised
)
hr
=
IPersistStorage_InitNew
(
This
->
pPSDelegate
,
This
->
storage
);
else
if
(
This
->
storage_state
==
storage_state_loaded
)
hr
=
IPersistStorage_Load
(
This
->
pPSDelegate
,
This
->
storage
);
if
(
FAILED
(
hr
))
goto
fail
;
if
(
This
->
containerApp
)
{
hr
=
IOleObject_SetHostNames
(
This
->
pOleDelegate
,
This
->
containerApp
,
This
->
containerObj
);
if
(
FAILED
(
hr
))
goto
fail
;
}
/* FIXME: do more stuff here:
* - IOleObject_GetMiscStatus
...
...
@@ -1357,20 +1361,22 @@ static HRESULT WINAPI DefaultHandler_Run(
* - IOleCache_OnRun
*/
if
(
SUCCEEDED
(
hr
))
hr
=
IOleObject_QueryInterface
(
This
->
pOleDelegate
,
&
IID_IDataObject
,
(
void
**
)
&
This
->
pDataDelegate
)
;
hr
=
IOleObject_QueryInterface
(
This
->
pOleDelegate
,
&
IID_IDataObject
,
(
void
**
)
&
This
->
pDataDelegate
);
if
(
FAILED
(
hr
))
goto
fail
;
if
(
SUCCEEDED
(
hr
)
&&
This
->
dataAdviseHolder
)
hr
=
DataAdviseHolder_OnConnect
(
This
->
dataAdviseHolder
,
This
->
pDataDelegate
);
if
(
FAILED
(
hr
))
if
(
This
->
dataAdviseHolder
)
{
DefaultHandler_Stop
(
This
);
release_delegates
(
This
)
;
hr
=
DataAdviseHolder_OnConnect
(
This
->
dataAdviseHolder
,
This
->
pDataDelegate
);
if
(
FAILED
(
hr
))
goto
fail
;
}
return
hr
;
fail:
DefaultHandler_Stop
(
This
);
release_delegates
(
This
);
return
hr
;
}
/************************************************************************
...
...
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