Commit fb0e62ee authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent dbdf9278
......@@ -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;
}
......
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