[Bug 28610] Drawing of Text using Message LOGFONT obtained via SystemParametersInfo can cause a crash in drawing of text (difference in behaviour)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 8 01:43:21 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=28610

--- Comment #2 from Dmitry Timoshkov <dmitry at baikal.ru> 2011-10-08 01:43:21 CDT ---
(In reply to comment #0)
> I have narrowed an issue down to a difference in behaviour between Windows and
> Wine.
> 
> The problem boils down to the following code:
> 
>   NONCLIENTMETRICS ncm;
>   memset(&ncm, 0, sizeof(NONCLIENTMETRICS));
>   ncm.cbSize = sizeof(NONCLIENTMETRICS);
> 
>   VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
> sizeof(NONCLIENTMETRICS), &ncm, 0));
> 
> I used the font's returned from this call for drawing text and this caused the
> crash.

Most likely the SystemParametersInfo() call above fails, but your code ignores
it.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list