[WIN32K] Fix the size passed to UserSystemParametersInfo(). Addresses test issues revealed by r72636.

svn path=/trunk/; revision=72637
This commit is contained in:
Amine Khaldi 2016-09-09 22:26:55 +00:00
parent 3d5e037772
commit 87c6f4541c

View file

@ -1995,7 +1995,7 @@ UserDrawCaptionText(
TRACE("UserDrawCaptionText: %wZ\n", Text);
nclm.cbSize = sizeof(nclm);
if(!UserSystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &nclm, 0))
if (!UserSystemParametersInfo(SPI_GETNONCLIENTMETRICS, nclm.cbSize, &nclm, 0))
{
ERR("UserSystemParametersInfo() failed!\n");
return FALSE;