DrawCaptionTempW patch
Rein Klazes
rklazes at xs4all.nl
Mon Dec 16 12:23:14 CST 2002
Hi,
This bug caused uninitialised height and width data to be fed to the
font rasterizer, allocating more then 1.2 GB of VM.
Changelog:
windows : nonclient.c
Fix an A/W structure size bug in DrawCaptionTempW().
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/windows/nonclient.c 2002-11-24 23:13:26.000000000 +0100
+++ mywine/windows/nonclient.c 2002-12-16 19:00:37.000000000 +0100
@@ -347,7 +347,7 @@
else {
NONCLIENTMETRICSW nclm;
HFONT hNewFont;
- nclm.cbSize = sizeof(NONCLIENTMETRICSA);
+ nclm.cbSize = sizeof(NONCLIENTMETRICSW);
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, 0, &nclm, 0);
hNewFont = CreateFontIndirectW ((uFlags & DC_SMALLCAP) ?
&nclm.lfSmCaptionFont : &nclm.lfCaptionFont);
More information about the wine-patches
mailing list