Fix an A/W structure size bug in DrawCaptionTempW().

This commit is contained in:
Rein Klazes 2002-12-16 22:12:11 +00:00 committed by Alexandre Julliard
parent 3efdf38fcd
commit 6f9b686b5a
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ BOOL WINAPI DrawCaptionTempW (HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont,
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);