From 109f41aadce9242d8585b9123d783d35863e586c Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Tue, 19 Oct 2004 21:09:42 +0000 Subject: [PATCH] Pass correct uiParam for SPI_GETNONCLIENTMETRICS. --- dlls/comctl32/tooltips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index cdd77904802..15bb59bf0da 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -192,7 +192,7 @@ TOOLTIPS_InitSystemSettings (TOOLTIPS_INFO *infoPtr) DeleteObject (infoPtr->hFont); nclm.cbSize = sizeof(nclm); - SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, 0, &nclm, 0); + SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, sizeof(nclm), &nclm, 0); infoPtr->hFont = CreateFontIndirectW (&nclm.lfStatusFont); DeleteObject (infoPtr->hTitleFont);