[SHELL32] CShellItem: Fix return value of Compare method

This commit is contained in:
Giannis Adamopoulos 2018-02-20 14:36:31 +02:00
parent c361e475b4
commit af97de39a2

View file

@ -199,9 +199,13 @@ HRESULT WINAPI CShellItem::Compare(IShellItem *oth, SICHINTF hint, int *piOrder)
}
}
if (SUCCEEDED(hr))
if(FAILED(hr))
return hr;
if(*piOrder)
return S_FALSE;
else
return S_OK;
return hr;
}
HRESULT WINAPI CShellItem::GetClassID(CLSID *pClassID)