[PATCH 1/8] riched20: Stub for ITextRange interface and implement ITextDocument::Range. (resend try 4)

Huw Davies huw at codeweavers.com
Thu Sep 11 09:53:52 CDT 2014


On Thu, Sep 11, 2014 at 10:39:05PM +0800, Jactry Zeng wrote:
> 
> 2014-09-11 22:15 GMT+08:00 Huw Davies <huw at codeweavers.com>:
> >
> >
> > An obvious question is then: what happens to the range object if you
> > release all references to the txtdoc object?  Does the range object
> > still remain functional?
> 
> No, the program will crash when calling a function of ITextRange after
> released all references of txtDoc.

Nice.  Well hopefully nothing depends on that, so we don't have to follow
their broken implementation.  I think you should implement it as I suggested
and don't bother adding tests for the exact refcount number (nothing should
care about the exact number anyway).

Huw.



More information about the wine-devel mailing list