Added proper termination upon failure.
This commit is contained in:
parent
7de0d82b3f
commit
e9f5153521
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue