Commit 8a06bd9e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winex11.drv: Check NULL before calling (Coverity).

parent 482354bd
......@@ -1674,7 +1674,6 @@ static void XFONT_LoadAliases( HKEY hkey )
/* then user specified aliases */
do
{
BOOL bSubst;
char subsection[32];
snprintf( subsection, sizeof(subsection), "%s%i", INIAliasSection, i++ );
......@@ -1690,9 +1689,9 @@ static void XFONT_LoadAliases( HKEY hkey )
XFONT_InitialCapitals(buffer);
lpResource = XFONT_GetStringItem( buffer );
bSubst = (XFONT_GetStringItem( lpResource )) ? TRUE : FALSE;
if( lpResource && *lpResource )
{
BOOL bSubst = (XFONT_GetStringItem( lpResource )) ? TRUE : FALSE;
if (LFD_Parse(lpResource, &lfd)) XFONT_LoadAlias(&lfd, buffer, bSubst);
}
else
......
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