msi: dest_path refers to the directory prefix, not the entire file path.
This commit is contained in:
parent
055b5e44fe
commit
ced64861f5
|
@ -901,13 +901,11 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
|
||||||
}
|
}
|
||||||
|
|
||||||
dest = build_directory_name(2, dest_path, dest_name);
|
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),
|
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