Commit 191f21c7 authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

mscms: Collect some data during profile enumeration.

parent 9ba1876c
...@@ -442,9 +442,11 @@ static void test_GetCountColorProfileElements(void) ...@@ -442,9 +442,11 @@ static void test_GetCountColorProfileElements(void)
typedef struct colorspace_description_struct { typedef struct colorspace_description_struct {
DWORD dwID; DWORD dwID;
char *szName; char *szName;
BOOL registered;
char filename[MAX_PATH];
} colorspace_descr; } colorspace_descr;
#define describe_colorspace(id) {id, #id} #define describe_colorspace(id) {id, #id, FALSE, ""}
colorspace_descr known_colorspaces[] = { colorspace_descr known_colorspaces[] = {
describe_colorspace(SPACE_XYZ), describe_colorspace(SPACE_XYZ),
...@@ -478,12 +480,14 @@ static void enum_registered_color_profiles(void) ...@@ -478,12 +480,14 @@ static void enum_registered_color_profiles(void)
present = 0; present = 0;
trace("\n"); trace("\n");
trace("Searching for registered standard colorspace profiles:\n"); trace("Querying registered standard colorspace profiles via GetStandardColorSpaceProfileA():\n");
for (i=0; i<count; i++) for (i=0; i<count; i++)
{ {
ret = pGetStandardColorSpaceProfileA(NULL, known_colorspaces[i].dwID, profile, &size); ret = pGetStandardColorSpaceProfileA(NULL, known_colorspaces[i].dwID, profile, &size);
if (ret) if (ret)
{ {
lstrcpynA(known_colorspaces[i].filename, profile, MAX_PATH);
known_colorspaces[i].registered = TRUE;
present++; present++;
trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile)); trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile));
} }
......
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