msi: dest_path refers to the directory prefix, not the entire file path.

This commit is contained in:
James Hawkins 2008-01-15 22:29:56 -06:00 committed by Alexandre Julliard
parent 055b5e44fe
commit ced64861f5
1 changed files with 1 additions and 3 deletions

View File

@ -901,13 +901,11 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
}
dest = build_directory_name(2, dest_path, dest_name);
create_full_pathW(dest);
create_full_pathW(dest_path);
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