Hans Leidekker : mscms: Open . icm files only when enumerating color profiles.
Alexandre Julliard
julliard at winehq.org
Fri Jan 25 07:06:06 CST 2008
Module: wine
Branch: master
Commit: f6d1767df4cf0ca5974c0ca3b9b5de11274ebaaf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6d1767df4cf0ca5974c0ca3b9b5de11274ebaaf
Author: Hans Leidekker <hans at it.vu.nl>
Date: Thu Jan 24 20:03:14 2008 +0100
mscms: Open .icm files only when enumerating color profiles.
---
dlls/mscms/profile.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index 11413f1..3f0a50d 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -611,7 +611,7 @@ BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer,
PDWORD size, PDWORD number )
{
BOOL match, ret = FALSE;
- char spec[] = "\\*";
+ char spec[] = "\\*.icm";
char colordir[MAX_PATH], glob[MAX_PATH], **profiles = NULL;
DWORD i, len = sizeof(colordir), count = 0, totalsize = 0;
PROFILEHEADER header;
@@ -760,7 +760,7 @@ BOOL WINAPI EnumColorProfilesW( PCWSTR machine, PENUMTYPEW record, PBYTE buffer,
PDWORD size, PDWORD number )
{
BOOL match, ret = FALSE;
- WCHAR spec[] = {'\\','*',0};
+ WCHAR spec[] = {'\\','*','i','c','m',0};
WCHAR colordir[MAX_PATH], glob[MAX_PATH], **profiles = NULL;
DWORD i, len = sizeof(colordir), count = 0, totalsize = 0;
PROFILEHEADER header;
More information about the wine-cvs
mailing list