Commit 3bd22200 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix a leak of the IBindCtx object in FileMonikerImpl_IsEqual.

parent 2249565e
......@@ -793,13 +793,15 @@ FileMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
res = CreateBindCtx(0,&bind);
if (FAILED(res)) return res;
res = S_FALSE;
if (SUCCEEDED(IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&filePath))) {
int result = lstrcmpiW(filePath, This->filePathName);
if (!lstrcmpiW(filePath, This->filePathName))
res = S_OK;
CoTaskMemFree(filePath);
if ( result == 0 ) return S_OK;
}
return S_FALSE;
IBindCtx_Release(bind);
return res;
}
/******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment