From e68150859105174268d0139ea470299727500cbc Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 13 Feb 2008 21:56:45 +0100 Subject: [PATCH] mscms/tests: EnumColorProfiles() should not fail even if there are no ICM files in the 'color directory'. --- dlls/mscms/tests/profile.c | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c index 1055faadfeb..9b01950e5dc 100644 --- a/dlls/mscms/tests/profile.c +++ b/dlls/mscms/tests/profile.c @@ -788,11 +788,9 @@ static void test_EnumColorProfilesA(void) ret = pEnumColorProfilesA( NULL, &record, buffer, NULL, &number ); ok( !ret, "EnumColorProfilesA() succeeded (%d)\n", GetLastError() ); - if (standardprofile) - { - ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number ); - ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() ); - } + ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number ); + todo_wine + ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() ); size = 0; @@ -801,13 +799,11 @@ static void test_EnumColorProfilesA(void) /* Functional checks */ - if (standardprofile) - { - size = total; + size = total; + ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number ); + todo_wine + ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() ); - ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number ); - ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() ); - } HeapFree( GetProcessHeap(), 0, buffer ); } @@ -842,26 +838,21 @@ static void test_EnumColorProfilesW(void) ret = pEnumColorProfilesW( NULL, &record, buffer, NULL, &number ); ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() ); - if (standardprofileW) - { - ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); - ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() ); - } + ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); + todo_wine + ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() ); size = 0; - ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() ); /* Functional checks */ - if (standardprofileW) - { - size = total; + size = total; + ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); + todo_wine + ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() ); - ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); - ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() ); - } HeapFree( GetProcessHeap(), 0, buffer ); }