mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:48:20 +00:00
hlink: Handle failure better (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
622a24046f
commit
0e486b789d
|
@ -106,10 +106,13 @@ static HRESULT WINAPI IHlinkBC_Register(IHlinkBrowseContext* iface,
|
|||
IMoniker *mon;
|
||||
IMoniker *composite;
|
||||
IRunningObjectTable *ROT;
|
||||
HRESULT hr;
|
||||
|
||||
FIXME("(%p)->(%i %p %p %p)\n", This, dwReserved, piunk, pimk, pdwRegister);
|
||||
|
||||
CreateItemMoniker(NULL, szIdent, &mon);
|
||||
hr = CreateItemMoniker(NULL, szIdent, &mon);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
CreateGenericComposite(mon, pimk, &composite);
|
||||
|
||||
GetRunningObjectTable(0, &ROT);
|
||||
|
|
Loading…
Reference in a new issue