[WINESYNC] setupapi: Correctly handle errors in fake_dlls_callback (Coverity).

wine commit id edd9066d5b676104c036cb621574f36ea055951b by Frédéric Delanoy <frederic.delanoy@gmail.com>
This commit is contained in:
winesync 2024-01-04 22:07:24 +01:00 committed by Hermès Bélusca-Maïto
parent f9fc4b3593
commit c17b8bc8ca
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 2 additions and 4 deletions

View file

@ -780,7 +780,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 ))
@ -809,9 +808,8 @@ static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
done:
HeapFree( GetProcessHeap(), 0, path );
if (!ret) break;
}
return ret;
return TRUE;
}
#endif // __WINESRC__

View file

@ -5,4 +5,4 @@ files:
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
tags:
wine: 88baa9e700027b4d57cc8c5589c3a4e8843b31c1
wine: edd9066d5b676104c036cb621574f36ea055951b