Zebediah Figura : setupapi: Avoid passing a NULL source filename to SetupQueueDefaultCopy().

Alexandre Julliard julliard at winehq.org
Wed May 8 18:22:48 CDT 2019


Module: wine
Branch: master
Commit: 9ccf1dd88b89530977923058a7334816e6b368d4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9ccf1dd88b89530977923058a7334816e6b368d4

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue May  7 18:04:10 2019 -0500

setupapi: Avoid passing a NULL source filename to SetupQueueDefaultCopy().

Fixes a regression introduced by 705d3eed86f3ff96ee1190dbc694148c21c4939c.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47138
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/setupapi/install.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c
index 265fbd0..6a3213c 100644
--- a/dlls/setupapi/install.c
+++ b/dlls/setupapi/install.c
@@ -165,7 +165,7 @@ static BOOL copy_files_callback( HINF hinf, PCWSTR field, void *arg )
 
     if (field[0] == '@')  /* special case: copy single file */
         SetupQueueDefaultCopyW( info->queue, info->layout ? info->layout : hinf,
-                info->src_root ? info->src_root : src_root, NULL, field+1, info->copy_flags );
+                info->src_root ? info->src_root : src_root, field+1, field+1, info->copy_flags );
     else
         SetupQueueCopySectionW( info->queue, info->src_root ? info->src_root : src_root,
                 info->layout ? info->layout : hinf, hinf, field, info->copy_flags );




More information about the wine-cvs mailing list