Commit 765275a3 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Make sure read-only source files are set writable after being copied.

parent 8a9ba8f7
......@@ -131,13 +131,13 @@ static UINT copy_file(MSIFILE *file)
BOOL ret;
ret = CopyFileW(file->SourcePath, file->TargetPath, FALSE);
if (ret)
{
file->state = msifs_installed;
return ERROR_SUCCESS;
}
if (!ret)
return GetLastError();
return GetLastError();
SetFileAttributesW(file->TargetPath, FILE_ATTRIBUTE_NORMAL);
file->state = msifs_installed;
return ERROR_SUCCESS;
}
static UINT copy_install_file(MSIFILE *file)
......
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