Fix size passed to SPI_NONCLIENTMETRICS.

This commit is contained in:
Robert Shearman 2005-03-27 17:52:16 +00:00 committed by Alexandre Julliard
parent e6260a3625
commit 5a6461071e
1 changed files with 1 additions and 1 deletions

View File

@ -4122,7 +4122,7 @@ REBAR_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam)
SetWindowLongW (hwnd, GWL_STYLE, infoPtr->dwStyle);
/* get font handle for Caption Font */
ncm.cbSize = sizeof(NONCLIENTMETRICSA);
ncm.cbSize = sizeof(ncm);
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0);
/* if the font is bold, set to normal */
if (ncm.lfCaptionFont.lfWeight > FW_NORMAL) {