[PATCH 1/3] shell32: Add IQueryInfo in ShellFolder2_GetUIObjectOf [try 2]

Nikolay Sivov bunglehead at gmail.com
Sun May 20 11:59:54 CDT 2012


On 5/20/2012 18:47, Detlef Riekenberg wrote:
> +HRESULT IQueryInfo_Constructor(LPCITEMIDLIST root, LPCITEMIDLIST item, void ** ppvOut)
> +{
> +    IQueryInfoImpl *qi = HeapAlloc(GetProcessHeap(), 0, sizeof(IQueryInfoImpl));
> +    LPITEMIDLIST pidl = ILCombine(root, item);
> +
> +    if (!pidl || !qi) {
> +        SHFree(pidl);
> +        HeapFree(GetProcessHeap(), 0, qi);
> +        return E_OUTOFMEMORY;
> +    }
> +
> +    qi->IQueryInfo_iface.lpVtbl =&IQueryInfo_vtbl;
> +    qi->ref = 1;
> +    qi->pidl = ILClone(pidl);
> +
> +    SHFree(pidl);
I don't see a reason to ILClone() here. You could just store ILCombine() 
result.



More information about the wine-devel mailing list