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

This commit is contained in:
James Hawkins 2007-05-29 10:09:44 -07:00 committed by Alexandre Julliard
parent ec86243521
commit 1aa0082558
1 changed files with 2 additions and 0 deletions

View File

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