mscms: Assume read sharing when no sharing flags are specified in OpenColorProfile.

This commit is contained in:
Hans Leidekker 2008-02-22 16:19:51 +01:00 committed by Alexandre Julliard
parent dbdf9278e8
commit fb0e62eef0
1 changed files with 2 additions and 1 deletions

View File

@ -1397,11 +1397,12 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
if (access & PROFILE_READWRITE) flags = GENERIC_READ|GENERIC_WRITE;
if (!flags) return NULL;
if (!sharing) sharing = FILE_SHARE_READ;
handle = CreateFileW( profile->pProfileData, flags, sharing, NULL, creation, 0, NULL );
if (handle == INVALID_HANDLE_VALUE)
{
WARN( "Unable to open color profile\n" );
WARN( "Unable to open color profile %u\n", GetLastError() );
return NULL;
}