[SHELL32]

Backport Wine commit: 0efa2331e2f54b81480adeb588972ca16a8dab16
"Fix a cloned pidl leak (Coverity)." by Nikolay Sivov

CID 716480

svn path=/trunk/; revision=69674
This commit is contained in:
Pierre Schweitzer
2015-10-24 10:27:40 +00:00
parent 7479bc63fe
commit a2b2cb7dcf
+3 -3
View File
@@ -664,15 +664,15 @@ HRESULT SHELL32_CompareIDs(IShellFolder * iface, LPARAM lParam, LPCITEMIDLIST pi
if (isEmpty1 && isEmpty2)
{
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 0);
nReturn = MAKE_HRESULT( SEVERITY_SUCCESS, 0, 0 );
}
else if (isEmpty1)
{
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, (WORD) -1);
nReturn = MAKE_HRESULT( SEVERITY_SUCCESS, 0, (WORD)-1 );
}
else if (isEmpty2)
{
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, 1);
nReturn = MAKE_HRESULT( SEVERITY_SUCCESS, 0, 1 );
/* optimizing end */
}
else if (SUCCEEDED(iface->BindToObject(firstpidl, NULL, IID_PPV_ARG(IShellFolder, &psf)))) {