mscms: Only check the first three characters of the color space name.

This commit is contained in:
James Hawkins 2008-06-24 16:26:32 -05:00 committed by Alexandre Julliard
parent 7d978d557f
commit f564ed5f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{