Added proper termination upon failure.

This commit is contained in:
Andreas Mohr 2000-03-24 19:47:35 +00:00 committed by Alexandre Julliard
parent 7de0d82b3f
commit e9f5153521
1 changed files with 6 additions and 1 deletions

View File

@ -158,7 +158,7 @@ BOOL WINAPI SystemParametersInfoA( UINT uAction, UINT uParam,
#define lpnm ((LPNONCLIENTMETRICSA)lpvParam)
if( lpnm->cbSize == sizeof(NONCLIENTMETRICSA) )
if (lpnm->cbSize == sizeof(NONCLIENTMETRICSA))
{
LPLOGFONTA lpLogFont = &(lpnm->lfMenuFont);
@ -211,6 +211,11 @@ BOOL WINAPI SystemParametersInfoA( UINT uAction, UINT uParam,
SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0,
(LPVOID)&(lpnm->lfMessageFont),0);
}
else
{
WARN("size mismatch !! (is %d; should be %d)\n", lpnm->cbSize, sizeof(NONCLIENTMETRICSA));
return FALSE;
}
#undef lpnm
break;