Commit f564ed5f authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 7d978d55
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment