James Hawkins : mscms: Only check the first three characters of the color space name.
Alexandre Julliard
julliard at winehq.org
Wed Jun 25 04:47:14 CDT 2008
Module: wine
Branch: master
Commit: f564ed5f1f7d3a41ee900a5faf70f1878c0c87b9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f564ed5f1f7d3a41ee900a5faf70f1878c0c87b9
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Tue Jun 24 16:26:32 2008 -0500
mscms: Only check the first three characters of the color space name.
---
dlls/mscms/tests/profile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index efcd3b5..7d77baa 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -569,7 +569,7 @@ static void check_registry(BOOL *has_space_rgb)
dwNameLen = sizeof(szName);
dwDataLen = sizeof(szData);
res = RegEnumValueA( hkIcmKey, i, szName, &dwNameLen, NULL, &dwType, (LPBYTE)szData, &dwDataLen );
- if (strcmp(szName, "RGB") == 0)
+ if (!strncmp(szName, "RGB", 3))
*has_space_rgb = TRUE;
if (res != ERROR_SUCCESS)
{
More information about the wine-cvs
mailing list