mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[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:
@@ -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)))) {
|
||||
|
||||
Reference in New Issue
Block a user