[PATCH 7/9] Additional test to show that custom cap isn't created without stroke path

Nikolay Sivov bunglehead at gmail.com
Sat Dec 5 12:58:57 CST 2009


---
 dlls/gdiplus/tests/customlinecap.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/tests/customlinecap.c b/dlls/gdiplus/tests/customlinecap.c
index 78a8c70..7aa8dc4 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);
-- 
1.5.6.5


--=-ldB5e63n3BE5xN09uE/I--




More information about the wine-patches mailing list