mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 09:21:31 +00:00
[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:
parent
f9fc4b3593
commit
c17b8bc8ca
|
@ -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__
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue