[WINESYNC] setupapi: Only cleanup fake dlls once the whole section has been executed.

wine commit id 6836990e0b1143cad40d6f9cf54d85483e353cf5 by Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
winesync 2024-01-04 17:50:35 +01:00 committed by Hermès Bélusca-Maïto
parent ef55a9703d
commit ed312cfd56
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 4 additions and 3 deletions

View file

@ -792,7 +792,6 @@ static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
HeapFree( GetProcessHeap(), 0, path );
if (!ret) break;
}
cleanup_fake_dlls();
return ret;
}
#endif // __WINESRC__
@ -1442,7 +1441,9 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
else info.callback = NULL;
#ifdef __WINESRC__
if (!iterate_section_fields( hinf, section, WineFakeDlls, fake_dlls_callback, NULL ))
if (iterate_section_fields( hinf, section, WineFakeDlls, fake_dlls_callback, NULL ))
cleanup_fake_dlls();
else
return FALSE;
#endif

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: bf18e7e71f27035c4c9dbc6d447f57a907b9f752
wine: 6836990e0b1143cad40d6f9cf54d85483e353cf5