Author: tfaber
Date: Tue Nov 24 14:57:00 2015
New Revision: 70095
URL:
http://svn.reactos.org/svn/reactos?rev=70095&view=rev
Log:
[MSI]
- Use the correct attributes when overwriting a read-only file in cabinet_copy_file. Will
be sent upstream after the 1.8 release.
CORE-10534 #resolve
Modified:
trunk/reactos/dll/win32/msi/media.c
Modified: trunk/reactos/dll/win32/msi/media.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msi/media.c?rev=…
==============================================================================
--- trunk/reactos/dll/win32/msi/media.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msi/media.c [iso-8859-1] Tue Nov 24 14:57:00 2015
@@ -465,7 +465,7 @@
{
TRACE("removing read-only attribute on %s\n", debugstr_w(path));
SetFileAttributesW( path, attrs2 & ~FILE_ATTRIBUTE_READONLY );
- handle = CreateFileW(path, GENERIC_READ | GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS, attrs2, NULL);
+ handle = CreateFileW(path, GENERIC_READ | GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS, attrs, NULL);
if (handle != INVALID_HANDLE_VALUE) goto done;
err = GetLastError();