Commit f0223182 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32/tests: Some tests for GetICMProfile().

parent 312b7b43
......@@ -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 );
......@@ -109,6 +116,11 @@ static void test_GetICMProfileW( HDC dc )
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 );
error = GetLastError();
......
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