ole32: Handle some failures in Inverse() for composite moniker (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2015-03-13 11:47:55 +03:00 committed by Alexandre Julliard
parent 46914d8794
commit 24dce2b229
1 changed files with 8 additions and 1 deletions

View File

@ -778,9 +778,16 @@ CompositeMonikerImpl_Inverse(IMoniker* iface,IMoniker** ppmk)
/* This method returns a composite moniker that consists of the inverses of each of the components */ /* This method returns a composite moniker that consists of the inverses of each of the components */
/* of the original composite, stored in reverse order */ /* of the original composite, stored in reverse order */
*ppmk = NULL;
res=CreateAntiMoniker(&antiMk); res=CreateAntiMoniker(&antiMk);
res=IMoniker_ComposeWith(iface,antiMk,0,&tempMk); if (FAILED(res))
return res;
res=IMoniker_ComposeWith(iface,antiMk,FALSE,&tempMk);
IMoniker_Release(antiMk); IMoniker_Release(antiMk);
if (FAILED(res))
return res;
if (tempMk==NULL) if (tempMk==NULL)