Commit 7545fc10 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 4a1c243e
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment