[PATCH 3/5] riched20: Implement ITextRange::GetDuplicate. (try 3)

Huw Davies huw at codeweavers.com
Wed Sep 17 03:22:22 CDT 2014

On Tue, Sep 16, 2014 at 06:39:20PM +0800, Jactry Zeng wrote:
> +    hres = CreateITextRange(This->reOle, This->start, This->end, ppRange);
> +    if (FAILED(hres))
> +        return E_FAIL;
> +    return hres;

Actually since CreateITextRange can only fail in out-of-memory
cases we can't easily test this behaviour and there's no
guarantee that the docs are correct anyway.  So just
return CreateITextRange(..) here would be cleaner.


More information about the wine-devel mailing list