From b6ffca256ef9985ec18f5d00e699cf341b770b8e Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 2 Sep 2009 11:42:34 +0200 Subject: [PATCH] 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 1c6811e0689..c9a5b42b6bd 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 0e5d5e6b507..99fd2bcdc4e 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