msctf: Always return FALSE in DllCanUnloadNow

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Apr 2 01:51:35 CDT 2015


Hi Sebastian,

The patch on the bug only fixes a crash when using the ITfThreadMgr 
interface.
 
If you created any of the other interfaces in the dll, there would be
chance it would still crash since the DLL could be unloaded since 
MSCTF_refCount would be zero.
 
My patch is consistent with other dlls, i.e. msxml3, mshtml, atl,
to ensue that the DLL isn't unloaded while an interface may exist. 

Best Regards

 Alistair Leslie-Hughes


> Date: Thu, 2 Apr 2015 03:37:48 +0200
> From: sebastian at fds-team.de
> To: leslie_alistair at hotmail.com
> CC: wine-devel at winehq.org
> Subject: Re: msctf: Always return FALSE in DllCanUnloadNow
> 
> On 02.04.2015 03:34, Alistair Leslie-Hughes wrote:
> > Hi,
> > Fixes https://bugs.winehq.org/show_bug.cgi?id=31579
> > 
> > Changelog:
> >       msctf: Always return FALSE in DllCanUnloadNow
> > 
> > 
> > Best Regards
> >   Alistair Leslie-Hughes
> > 
> > 
> > 
> 
> I doubt that the patch has any real disadvantage, but wouldn't it be better to fix the refcounting instead of just removing this feature? Qian Hong even attached a suggested patch on the bugreport.
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150402/bf8e964c/attachment.html>


More information about the wine-devel mailing list