[PATCH] gdi32/tests: Some tests for GetICMProfile()
Nikolay Sivov
nsivov at codeweavers.com
Mon Dec 14 10:39:40 CST 2015
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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();
--
2.6.2
More information about the wine-patches
mailing list