Commit 22949d94 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Don't request unneeded access in OpenFileMapping.

parent ba1e2660
......@@ -469,8 +469,8 @@ HANDLE WINAPI OpenFileMappingW( DWORD access, BOOL inherit, LPCWSTR name)
attr.SecurityQualityOfService = NULL;
RtlInitUnicodeString( &nameW, name );
if (access & FILE_MAP_COPY) access |= SECTION_MAP_READ;
access |= STANDARD_RIGHTS_REQUIRED | SECTION_QUERY;
if (access == FILE_MAP_COPY) access = SECTION_MAP_READ;
access |= SECTION_QUERY;
if (GetVersion() & 0x80000000)
{
......
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