Commit e9f51535 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added proper termination upon failure.

parent 7de0d82b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment