Commit 6278f5ff authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus/tests: Add more checks to the GdipGetPathData test.

parent d4db49ef
...@@ -156,15 +156,16 @@ static void test_getpathdata(void) ...@@ -156,15 +156,16 @@ static void test_getpathdata(void)
GpStatus status; GpStatus status;
INT count; INT count;
GdipCreatePath(FillModeAlternate, &path); status = GdipCreatePath(FillModeAlternate, &path);
expect(Ok, status);
status = GdipAddPathLine(path, 5.0, 5.0, 100.0, 50.0); status = GdipAddPathLine(path, 5.0, 5.0, 100.0, 50.0);
expect(Ok, status); expect(Ok, status);
/* Prepare storage. Made by wrapper class. */
status = GdipGetPointCount(path, &count); status = GdipGetPointCount(path, &count);
expect(Ok, status); expect(Ok, status);
expect(2, count);
data.Count = 2; data.Count = count;
data.Types = GdipAlloc(sizeof(BYTE) * count); data.Types = GdipAlloc(sizeof(BYTE) * count);
data.Points = GdipAlloc(sizeof(PointF) * count); data.Points = GdipAlloc(sizeof(PointF) * count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment