Zebediah Figura : setupapi: Use the source file name if the destination file name is NULL.
Module: wine Branch: master Commit: cfe4ce28ebc0f381eb2f561ad3111eef71505546 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cfe4ce28ebc0f381eb2f561ad... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Wed May 1 18:24:12 2019 -0500 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(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 c6c3440..ec5c9fa 100644 --- a/dlls/setupapi/queue.c +++ b/dlls/setupapi/queue.c @@ -539,7 +539,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);
participants (1)
-
Alexandre Julliard