ole32: Fix reference count leak in BindMoniker.
This commit is contained in:
parent
9f3c91e41f
commit
14f7a59270
|
@ -611,6 +611,9 @@ HRESULT WINAPI BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID riid, LPVOID * pp
|
|||
|
||||
res = CreateBindCtx(grfOpt, &pbc);
|
||||
if (SUCCEEDED(res))
|
||||
{
|
||||
res = IMoniker_BindToObject(pmk, pbc, NULL, riid, ppvResult);
|
||||
IBindCtx_Release(pbc);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue