Commit 1aa00825 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Create the destination directory if it doesn't exist when duplicating files.

parent ec862435
......@@ -899,6 +899,8 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
TRACE("Duplicating file %s to %s\n",debugstr_w(file->TargetPath),
debugstr_w(dest));
CreateDirectoryW(dest_path, NULL);
if (strcmpW(file->TargetPath,dest))
rc = !CopyFileW(file->TargetPath,dest,TRUE);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment