Module: wine Branch: master Commit: 7545fc1014363b40f6f9fa3b9e98f4c27b6b46a7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7545fc1014363b40f6f9fa3b9e...
Author: Hans Leidekker hans@codeweavers.com Date: Fri May 20 12:32:41 2011 +0200
msi: Recursively create the destination directory in the MoveFiles action.
---
dlls/msi/files.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 06854be..97dbfa0 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -865,10 +865,9 @@ static UINT ITERATE_MoveFiles( MSIRECORD *rec, LPVOID param )
if (GetFileAttributesW(destdir) == INVALID_FILE_ATTRIBUTES) { - ret = CreateDirectoryW(destdir, NULL); - if (!ret) + if (!(ret = msi_create_full_path(destdir))) { - WARN("CreateDirectory failed: %d\n", GetLastError()); + WARN("failed to create directory %u\n", GetLastError()); goto done; } }