Module: wine Branch: master Commit: f0223182af1a72720a228b827f5b1559fb12e216 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0223182af1a72720a228b827f...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Dec 14 19:39:40 2015 +0300
gdi32/tests: Some tests for GetICMProfile().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/tests/icm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/dlls/gdi32/tests/icm.c b/dlls/gdi32/tests/icm.c index 4afae6b..764d0d2 100644 --- a/dlls/gdi32/tests/icm.c +++ b/dlls/gdi32/tests/icm.c @@ -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();