kernel32: Don't request unneeded access in OpenFileMapping.

This commit is contained in:
Alexandre Julliard 2008-11-13 11:49:17 +01:00
parent ba1e2660e8
commit 22949d94f0
1 changed files with 2 additions and 2 deletions

View File

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