msi: Recursively create the destination directory in the MoveFiles action.

This commit is contained in:
Hans Leidekker 2011-05-20 12:32:41 +02:00 committed by Alexandre Julliard
parent 4a1c243e6a
commit 7545fc1014
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}
}