mscms: Accept REG_DWORD values when enumerating registered color profiles.

Fixes test failures on Vista.
This commit is contained in:
Hans Leidekker 2009-03-04 12:45:30 +01:00 committed by Alexandre Julliard
parent 8a2d97ac3d
commit ec87dfde50
1 changed files with 8 additions and 3 deletions

View File

@ -581,9 +581,14 @@ static void check_registry(BOOL *has_space_rgb)
trace("RegEnumValueA() failed (%d), cannot enumerate profiles\n", res);
break;
}
ok( dwType == REG_SZ, "RegEnumValueA() returned unexpected value type (%d)\n", dwType );
if (dwType != REG_SZ) break;
trace(" found '%s' value containing '%s' (%d chars)\n", szName, szData, lstrlenA(szData));
ok( dwType == REG_SZ || dwType == REG_DWORD, "RegEnumValueA() returned unexpected value type (%d)\n", dwType );
if (dwType == REG_SZ)
trace(" found string value '%s' containing '%s' (%d chars)\n", szName, szData, lstrlenA(szData));
else if (dwType == REG_DWORD)
trace(" found DWORD value '%s' containing '%x'\n", szName, *(DWORD *)szData);
else
break;
}
RegCloseKey( hkIcmKey );