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

mscms: Open .icm files only when enumerating color profiles.

parent 72ba2be6
......@@ -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;
......
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