From 1aa0082558050daed4852ad29cc0a12c531a35e6 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 29 May 2007 10:09:44 -0700 Subject: [PATCH] msi: Create the destination directory if it doesn't exist when duplicating files. --- dlls/msi/files.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 97175372b64..f8070691685 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -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