Module: wine Branch: master Commit: fb0e62eef0c1242eb466241242260c6014996b74 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb0e62eef0c1242eb466241242...
Author: Hans Leidekker hans@it.vu.nl Date: Fri Feb 22 16:19:51 2008 +0100
mscms: Assume read sharing when no sharing flags are specified in OpenColorProfile.
---
dlls/mscms/profile.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c index d7e8c76..af636ef 100644 --- a/dlls/mscms/profile.c +++ b/dlls/mscms/profile.c @@ -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; }