http://bugs.winehq.org/show_bug.cgi?id=5814
------- Additional Comments From rob@codeweavers.com 2006-03-08 05:53 ------- No, fontLock should be moved inside the per-HFONT list-entry. So each one should look like this: { struct list entry; HFONT hfont; LONG refs; }
Then AddRefHFont should lookup the font handle and increment refs, while ReleaseHFont should lookup the font handle and decrement refs, deleting the entry if it reaches zero.