From ec87dfde5060e15fce2c6afe32e9ccad99f41e07 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 4 Mar 2009 12:45:30 +0100 Subject: [PATCH] mscms: Accept REG_DWORD values when enumerating registered color profiles. Fixes test failures on Vista. --- dlls/mscms/tests/profile.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c index e33280ab857..100c15c4f1f 100644 --- a/dlls/mscms/tests/profile.c +++ b/dlls/mscms/tests/profile.c @@ -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 );