mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 13:43:16 +00:00
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),
|
||||
debugstr_w(dest));
|
||||
|
||||
CreateDirectoryW(dest_path, NULL);
|
||||
|
||||
if (strcmpW(file->TargetPath,dest))
|
||||
rc = !CopyFileW(file->TargetPath,dest,TRUE);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user