diff --git a/reactos/win32ss/user/ntuser/painting.c b/reactos/win32ss/user/ntuser/painting.c index ee6dc188fe5..9f071fcac9c 100644 --- a/reactos/win32ss/user/ntuser/painting.c +++ b/reactos/win32ss/user/ntuser/painting.c @@ -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;