http://bugs.winehq.org/show_bug.cgi?id=28610
--- Comment #2 from Dmitry Timoshkov dmitry@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.