From 25260e601c34a98d22db2a3cbd7649803377a05c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 5 Dec 2009 21:58:57 +0300 Subject: [PATCH] gdiplus/tests: Additional test to show that custom cap isn't created without stroke path. --- dlls/gdiplus/tests/customlinecap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdiplus/tests/customlinecap.c b/dlls/gdiplus/tests/customlinecap.c index 78a8c704830..7aa8dc46ca7 100644 --- a/dlls/gdiplus/tests/customlinecap.c +++ b/dlls/gdiplus/tests/customlinecap.c @@ -59,8 +59,10 @@ static void test_constructor_destructor(void) stat = GdipDeleteCustomLineCap(custom); expect(Ok, stat); /* it's strange but native returns NotImplemented on stroke == NULL */ + custom = NULL; stat = GdipCreateCustomLineCap(path, NULL, LineCapFlat, 10.0, &custom); todo_wine expect(NotImplemented, stat); + todo_wine ok(custom == NULL, "Expected a failure on creation\n"); GdipDeletePath(path2); GdipDeletePath(path);