mscms: Only check the first three characters of the color space name.
This commit is contained in:
parent
7d978d557f
commit
f564ed5f1f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue