user32: Don't access a potentially uninitialized padded_border.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2019-06-21 10:07:18 +01:00 committed by Alexandre Julliard
parent b00a45cc20
commit 3f9c5d7682
1 changed files with 5 additions and 2 deletions

View File

@ -1753,8 +1753,11 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
get_entry( &entry_MENULOGFONT, 0, &lpnm->lfMenuFont ) &&
get_entry( &entry_STATUSLOGFONT, 0, &lpnm->lfStatusFont ) &&
get_entry( &entry_MESSAGELOGFONT, 0, &lpnm->lfMessageFont );
lpnm->iBorderWidth += padded_border;
if (ret && lpnm->cbSize == sizeof(NONCLIENTMETRICSW)) lpnm->iPaddedBorderWidth = 0;
if (ret)
{
lpnm->iBorderWidth += padded_border;
if (lpnm->cbSize == sizeof(NONCLIENTMETRICSW)) lpnm->iPaddedBorderWidth = 0;
}
normalize_nonclientmetrics( lpnm );
break;
}