setupapi: Use SetupInstallFilesFromInfSectionW() in SetupInstallFromInfSectionW().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
506ce2ae6b
commit
49c76f99fc
|
@ -1088,17 +1088,10 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
|
||||||
}
|
}
|
||||||
if (flags & SPINST_FILES)
|
if (flags & SPINST_FILES)
|
||||||
{
|
{
|
||||||
struct files_callback_info info;
|
|
||||||
HSPFILEQ queue;
|
HSPFILEQ queue;
|
||||||
|
|
||||||
if (!(queue = SetupOpenFileQueue())) return FALSE;
|
if (!(queue = SetupOpenFileQueue())) return FALSE;
|
||||||
info.queue = queue;
|
ret = (SetupInstallFilesFromInfSectionW( hinf, NULL, queue, section, src_root, copy_flags ) &&
|
||||||
info.src_root = src_root;
|
|
||||||
info.copy_flags = copy_flags;
|
|
||||||
info.layout = hinf;
|
|
||||||
ret = (iterate_section_fields( hinf, section, L"CopyFiles", copy_files_callback, &info ) &&
|
|
||||||
iterate_section_fields( hinf, section, L"DelFiles", delete_files_callback, &info ) &&
|
|
||||||
iterate_section_fields( hinf, section, L"RenFiles", rename_files_callback, &info ) &&
|
|
||||||
SetupCommitFileQueueW( owner, queue, callback, context ));
|
SetupCommitFileQueueW( owner, queue, callback, context ));
|
||||||
SetupCloseFileQueue( queue );
|
SetupCloseFileQueue( queue );
|
||||||
if (!ret) return FALSE;
|
if (!ret) return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue