Pass correct uiParam for SPI_GETNONCLIENTMETRICS.
This commit is contained in:
parent
af927f5043
commit
109f41aadc
|
@ -192,7 +192,7 @@ TOOLTIPS_InitSystemSettings (TOOLTIPS_INFO *infoPtr)
|
||||||
|
|
||||||
DeleteObject (infoPtr->hFont);
|
DeleteObject (infoPtr->hFont);
|
||||||
nclm.cbSize = sizeof(nclm);
|
nclm.cbSize = sizeof(nclm);
|
||||||
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, 0, &nclm, 0);
|
SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, sizeof(nclm), &nclm, 0);
|
||||||
infoPtr->hFont = CreateFontIndirectW (&nclm.lfStatusFont);
|
infoPtr->hFont = CreateFontIndirectW (&nclm.lfStatusFont);
|
||||||
|
|
||||||
DeleteObject (infoPtr->hTitleFont);
|
DeleteObject (infoPtr->hTitleFont);
|
||||||
|
|
Loading…
Reference in New Issue