[WINESYNC] setupapi: Use the source file name if the destination file name is NULL.

Do not do the reverse. Windows crashes if SourceFilename is NULL.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id cfe4ce28ebc0f381eb2f561ad3111eef71505546 by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
winesync 2023-09-29 17:20:32 +02:00 committed by Hermès Bélusca-Maïto
parent d306987d57
commit c1b2ea9954
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 2 additions and 2 deletions

View file

@ -636,7 +636,7 @@ BOOL WINAPI SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W params )
#endif
/* some defaults */
if (!op->src_file) op->src_file = op->dst_file;
if (!op->dst_file) op->dst_file = op->src_file;
if (params->LayoutInf)
#ifdef __REACTOS__
{

View file

@ -8,4 +8,4 @@ files:
dlls/setupapi/setupcab.c: dll/win32/setupapi/setupcab.c
dlls/setupapi/stringtable.c: dll/win32/setupapi/stringtable_wine.c
tags:
wine: db8e2388d940f908db009f34f620da1ac8b46d07
wine: cfe4ce28ebc0f381eb2f561ad3111eef71505546