From c1b2ea9954792a233f38946b0c03db664c929ff6 Mon Sep 17 00:00:00 2001 From: winesync Date: Fri, 29 Sep 2023 17:20:32 +0200 Subject: [PATCH] [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 Signed-off-by: Alexandre Julliard wine commit id cfe4ce28ebc0f381eb2f561ad3111eef71505546 by Zebediah Figura --- dll/win32/setupapi/queue.c | 2 +- sdk/tools/winesync/setupapi.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dll/win32/setupapi/queue.c b/dll/win32/setupapi/queue.c index 0d71e1b279b..e3ff66b24be 100644 --- a/dll/win32/setupapi/queue.c +++ b/dll/win32/setupapi/queue.c @@ -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__ { diff --git a/sdk/tools/winesync/setupapi.cfg b/sdk/tools/winesync/setupapi.cfg index 3fb612b090a..14da5f0d44b 100644 --- a/sdk/tools/winesync/setupapi.cfg +++ b/sdk/tools/winesync/setupapi.cfg @@ -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