Hans Leidekker : mscms: Use correct standard color space constants in GetStandardColorSpaceProfileW .

Alexandre Julliard julliard at winehq.org
Wed Sep 2 09:31:06 CDT 2009


Module: wine
Branch: master
Commit: b6ffca256ef9985ec18f5d00e699cf341b770b8e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b6ffca256ef9985ec18f5d00e699cf341b770b8e

Author: Hans Leidekker <hans at meelstraat.net>
Date:   Wed Sep  2 11:42:34 2009 +0200

mscms: Use correct standard color space constants in GetStandardColorSpaceProfileW.

---

 dlls/mscms/profile.c |    5 +++--
 include/wingdi.h     |    3 +++
 2 files changed, 6 insertions(+), 2 deletions(-)

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-cvs mailing list