Skip to content
Snippets Groups Projects
Commit e1d19f36 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Berend Reitsma <berend at asset-control.com>

SetFileAttributes32A changed to make file writeable when
FILE_ATTRIBUTE_READONLY is not set.
parent 9c77b474
Branches
Tags
No related merge requests found
......@@ -84,6 +84,11 @@ BOOL32 WINAPI SetFileAttributes32A(LPCSTR lpFileName, DWORD attributes)
buf.st_mode &= ~0222; /* octal!, clear write permission bits */
attributes &= ~FILE_ATTRIBUTE_READONLY;
}
else
{
/* add write permission */
buf.st_mode |= 0600 | ((buf.st_mode & 044) >> 1);
}
attributes &= ~(FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM);
if (attributes)
FIXME(file,"(%s):%lx attribute(s) not implemented.\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment