setupapi: Correctly handle errors in fake_dlls_callback (Coverity).

This commit is contained in:
Frédéric Delanoy 2012-01-19 17:14:21 +01:00 committed by Alexandre Julliard
parent 882d126dba
commit edd9066d5b

View File

@ -701,7 +701,6 @@ static BOOL register_dlls_callback( HINF hinf, PCWSTR field, void *arg )
static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
{
INFCONTEXT context;
BOOL ret = TRUE;
BOOL ok = SetupFindFirstLineW( hinf, field, NULL, &context );
for (; ok; ok = SetupFindNextLine( &context, &context ))
@ -730,9 +729,8 @@ static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
done:
HeapFree( GetProcessHeap(), 0, path );
if (!ret) break;
}
return ret;
return TRUE;
}
/***********************************************************************