[PATCH 11/13] setupapi: Use the source file name if the destination file name is NULL.
Zebediah Figura
z.figura12 at gmail.com
Wed May 1 18:24:12 CDT 2019
Do not do the reverse. Windows crashes if SourceFilename is NULL.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/setupapi/queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index 9e22c409a7..675462f09c 100644
--- a/dlls/setupapi/queue.c
+++ b/dlls/setupapi/queue.c
@@ -538,7 +538,7 @@ BOOL WINAPI SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W params )
op->dst_file = strdupW( params->TargetFilename );
/* 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)
FIXME("Unhandled LayoutInf %p.\n", params->LayoutInf);
--
2.21.0
More information about the wine-devel
mailing list