mscms: Collect some data during profile enumeration.
Saulius Krasuckas
saulius2 at ar.fi.lt
Mon Jan 16 11:54:11 CST 2006
Log message:
Saulius Krasuckas <saulius.krasuckas at gmail.com>
mscms: Collect some data during profile enumeration to use in future.
Index: dlls/mscms/tests/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/mscms/tests/profile.c,v
retrieving revision 1.29
diff -p -u -r1.29 profile.c
--- dlls/mscms/tests/profile.c 13 Jan 2006 13:35:06 -0000 1.29
+++ dlls/mscms/tests/profile.c 16 Jan 2006 17:01:27 -0000
@@ -442,9 +442,11 @@ static void test_GetCountColorProfileEle
typedef struct colorspace_description_struct {
DWORD dwID;
char *szName;
+ BOOL registered;
+ char filename[MAX_PATH];
} colorspace_descr;
-#define describe_colorspace(id) {id, #id}
+#define describe_colorspace(id) {id, #id, FALSE, ""}
colorspace_descr known_colorspaces[] = {
describe_colorspace(SPACE_XYZ),
@@ -478,12 +480,14 @@ static void enum_registered_color_profil
present = 0;
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++)
{
ret = pGetStandardColorSpaceProfileA(NULL, known_colorspaces[i].dwID, profile, &size);
if (ret)
{
+ lstrcpynA(known_colorspaces[i].filename, profile, MAX_PATH);
+ known_colorspaces[i].registered = TRUE;
present++;
trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile));
}
More information about the wine-patches
mailing list