mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
winex11.drv: Check NULL before calling (Coverity).
This commit is contained in:
parent
482354bdf7
commit
8a06bd9e1c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue