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>
This commit is contained in:
Zebediah Figura 2019-05-01 18:24:12 -05:00 committed by Alexandre Julliard
parent db8e2388d9
commit cfe4ce28eb
1 changed files with 1 additions and 1 deletions

View File

@ -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);