[PATCH v3 5/5] setupapi: Use SetupInstallFilesFromInfSectionW() in SetupInstallFromInfSectionW().
Zebediah Figura
zfigura at codeweavers.com
Sun Feb 6 22:53:34 CST 2022
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/setupapi/install.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c
index 58a19fa8a68..3a72c5f527d 100644
--- a/dlls/setupapi/install.c
+++ b/dlls/setupapi/install.c
@@ -1088,17 +1088,10 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
}
if (flags & SPINST_FILES)
{
- struct files_callback_info info;
HSPFILEQ queue;
if (!(queue = SetupOpenFileQueue())) return FALSE;
- info.queue = queue;
- 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 ) &&
+ ret = (SetupInstallFilesFromInfSectionW( hinf, NULL, queue, section, src_root, copy_flags ) &&
SetupCommitFileQueueW( owner, queue, callback, context ));
SetupCloseFileQueue( queue );
if (!ret) return FALSE;
--
2.34.1
More information about the wine-devel
mailing list