Commit e6815085 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

mscms/tests: EnumColorProfiles() should not fail even if there are no ICM files…

mscms/tests: EnumColorProfiles() should not fail even if there are no ICM files in the 'color directory'.
parent c627a81a
...@@ -788,11 +788,9 @@ static void test_EnumColorProfilesA(void) ...@@ -788,11 +788,9 @@ static void test_EnumColorProfilesA(void)
ret = pEnumColorProfilesA( NULL, &record, buffer, NULL, &number ); ret = pEnumColorProfilesA( NULL, &record, buffer, NULL, &number );
ok( !ret, "EnumColorProfilesA() succeeded (%d)\n", GetLastError() ); ok( !ret, "EnumColorProfilesA() succeeded (%d)\n", GetLastError() );
if (standardprofile) ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
{ todo_wine
ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number ); ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
ok( ret, "EnumColorProfilesA() failed (%d)\n", GetLastError() );
}
size = 0; size = 0;
...@@ -801,13 +799,11 @@ static void test_EnumColorProfilesA(void) ...@@ -801,13 +799,11 @@ static void test_EnumColorProfilesA(void)
/* Functional checks */ /* Functional checks */
if (standardprofile) size = total;
{ ret = pEnumColorProfilesA( NULL, &record, buffer, &size, &number );
size = total; 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 ); HeapFree( GetProcessHeap(), 0, buffer );
} }
...@@ -842,26 +838,21 @@ static void test_EnumColorProfilesW(void) ...@@ -842,26 +838,21 @@ static void test_EnumColorProfilesW(void)
ret = pEnumColorProfilesW( NULL, &record, buffer, NULL, &number ); ret = pEnumColorProfilesW( NULL, &record, buffer, NULL, &number );
ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() ); ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() );
if (standardprofileW) ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
{ todo_wine
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
ok( ret, "EnumColorProfilesW() failed (%d)\n", GetLastError() );
}
size = 0; size = 0;
ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number ); ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() ); ok( !ret, "EnumColorProfilesW() succeeded (%d)\n", GetLastError() );
/* Functional checks */ /* Functional checks */
if (standardprofileW) size = total;
{ ret = pEnumColorProfilesW( NULL, &record, buffer, &size, &number );
size = total; 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 ); HeapFree( GetProcessHeap(), 0, buffer );
} }
......
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