[gdiplus_winetest]
[reactos.git] / rostests / winetests / gdiplus / customlinecap.c
index 78a8c70..218e46d 100644 (file)
@@ -59,8 +59,11 @@ 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");
+    if(stat == Ok) GdipDeleteCustomLineCap(custom);
 
     GdipDeletePath(path2);
     GdipDeletePath(path);