[1/2] mscms: Use correct standard color space constants in GetStandardColorSpaceProfileW.

Hans Leidekker hans at meelstraat.net
Wed Sep 2 04:42:34 CDT 2009


Fixes http://bugs.winehq.org/show_bug.cgi?id=19647

 -Hans

diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index 1c6811e..c9a5b42 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -660,8 +660,9 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
     GetColorDirectoryW( machine, rgbprofile, &len );
 
     switch (id)
-    {
-        case SPACE_RGB: /* 'RGB ' */
+        case LCS_sRGB:
+        case LCS_WINDOWS_COLOR_SPACE: /* FIXME */
+        {
             lstrcatW( rgbprofile, rgbprofilefile );
             len = lstrlenW( rgbprofile ) * sizeof(WCHAR);
 
diff --git a/include/wingdi.h b/include/wingdi.h
index 0e5d5e6..99fd2bc 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -151,6 +151,9 @@ typedef LONG FXPT2DOT30, *LPFXPT2DOT30;
 typedef LONG LCSCSTYPE;
 typedef LONG LCSGAMUTMATCH;
 
+#define LCS_sRGB                    0x73524742  /* 'sRGB' */
+#define LCS_WINDOWS_COLOR_SPACE     0x57696e20  /* 'Win ' */
+
 #define LCS_CALIBRATED_RGB    0x00000000L
 #define LCS_DEVICE_RGB        0x00000001L
 #define LCS_DEVICE_CMYK       0x00000002L



More information about the wine-patches mailing list