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

oldstable
James Hawkins 2008-09-08 05:15:27 -05:00 committed by Alexandre Julliard
parent 8a9ba8f73f
commit 765275a306
1 changed files with 6 additions and 6 deletions

View File

@ -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)