Skip to content

Commit

Permalink
gdi32/tests: Some tests for GetICMProfile().
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Sivov <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
nsivov authored and julliard committed Dec 15, 2015
1 parent 312b7b4 commit f022318
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dlls/gdi32/tests/icm.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ static void test_GetICMProfileA( HDC dc )
size = MAX_PATH;
ret = GetICMProfileA( dc, &size, NULL );
ok( !ret, "GetICMProfileA succeeded\n" );
ok( size > 0, "got %u\n", size );

size = 0;
ret = GetICMProfileA( dc, &size, NULL );
ok( !ret, "GetICMProfileA succeeded\n" );
todo_wine
ok( size > 0, "got %u\n", size );

size = MAX_PATH;
ret = GetICMProfileA( NULL, &size, filename );
Expand Down Expand Up @@ -108,6 +115,11 @@ static void test_GetICMProfileW( HDC dc )
ret = GetICMProfileW( NULL, &size, filename );
ok( !ret, "GetICMProfileW succeeded\n" );

size = 0;
ret = GetICMProfileW( dc, &size, NULL );
ok( !ret, "GetICMProfileW succeeded\n" );
ok( size > 0, "got %u\n", size );

size = 0;
SetLastError(0xdeadbeef);
ret = GetICMProfileW( dc, &size, filename );
Expand Down

0 comments on commit f022318

Please sign in to comment.