Saulius Krasuckas : mscms: Collect some data during profile enumeration.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 16 14:37:55 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 191f21c7d40e023924c3c9d9658e501f2a61d850
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=191f21c7d40e023924c3c9d9658e501f2a61d850

Author: Saulius Krasuckas <saulius.krasuckas at gmail.com>
Date:   Mon Jan 16 20:42:24 2006 +0100

mscms: Collect some data during profile enumeration.

---

 dlls/mscms/tests/profile.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index 1f0f986..39f90a7 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -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-cvs mailing list