kernel32: Don't request unneeded access in OpenFileMapping.
This commit is contained in:
parent
ba1e2660e8
commit
22949d94f0
|
@ -469,8 +469,8 @@ HANDLE WINAPI OpenFileMappingW( DWORD access, BOOL inherit, LPCWSTR name)
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
RtlInitUnicodeString( &nameW, name );
|
RtlInitUnicodeString( &nameW, name );
|
||||||
|
|
||||||
if (access & FILE_MAP_COPY) access |= SECTION_MAP_READ;
|
if (access == FILE_MAP_COPY) access = SECTION_MAP_READ;
|
||||||
access |= STANDARD_RIGHTS_REQUIRED | SECTION_QUERY;
|
access |= SECTION_QUERY;
|
||||||
|
|
||||||
if (GetVersion() & 0x80000000)
|
if (GetVersion() & 0x80000000)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue