msi: Create the destination directory if it doesn't exist when duplicating files.
This commit is contained in:
parent
ec86243521
commit
1aa0082558
|
@ -899,6 +899,8 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
|
||||||
TRACE("Duplicating file %s to %s\n",debugstr_w(file->TargetPath),
|
TRACE("Duplicating file %s to %s\n",debugstr_w(file->TargetPath),
|
||||||
debugstr_w(dest));
|
debugstr_w(dest));
|
||||||
|
|
||||||
|
CreateDirectoryW(dest_path, NULL);
|
||||||
|
|
||||||
if (strcmpW(file->TargetPath,dest))
|
if (strcmpW(file->TargetPath,dest))
|
||||||
rc = !CopyFileW(file->TargetPath,dest,TRUE);
|
rc = !CopyFileW(file->TargetPath,dest,TRUE);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue