gdi32-related commit between 0.9.57<->0.9.58 broken .NET2/Systems.Windows.Forms

Huw Davies huw at
Wed Mar 26 09:47:12 CDT 2008

On Wed, Mar 26, 2008 at 02:05:25PM +0000, Hin-Tak Leung wrote:
> I found a .NET2/System.Windows.Forms application which was running alright
> in 0.9.56/0.9.57 with the appdb adaptations broke in 0.9.58. So I did a git bisect
> and found that it is a commit to gdi32/freetype.c from Huw Davies which broke it. 
> It is known that .NET does some strange things with fonts and font-related part of 
> the registry (See for discussion) and
> the commit apparently breaks that... I believe I see what that specific commit does
> and how it breaks .NET2, but I am not sure I understand *why* the commit was accepted
> in the first place and what was its purpose... Can somebody explain, and possibly
> either back-out the commit or at least modify it to make it not break stuff?
>     commit 0436a5d14abf22af6ec10640496f9e0298a65f69
>     Author: Huw Davies <huw at>
>     Date:   Mon Mar 10 12:31:43 2008 +0000
>     gdi32: Store the Windows path (if it's available) in the font registry entries.
> The error message I got was 'attempt to read or write protected memory. This is often
> an indication that other memory is corrupt'.

Could you explain how this breaks .NET2, I can't see why it should at the moment?
The purpose of the commit is to do what Windows does.

Huw Davies
huw at

More information about the wine-devel mailing list