Commit 3d802924 authored by Nathan Beckmann's avatar Nathan Beckmann Committed by Alexandre Julliard

gdiplus: Add tests for GdipCreateBitmapFromFile.

parent f49c7bb4
......@@ -105,6 +105,17 @@ static void test_GetImageDimension(void)
GdipDisposeImage((GpImage*)bm);
}
static void test_LoadingImages(void)
{
GpStatus stat;
stat = GdipCreateBitmapFromFile(0, 0);
expect(InvalidParameter, stat);
stat = GdipCreateBitmapFromFile(0, (GpBitmap**)0xdeadbeef);
expect(InvalidParameter, stat);
}
START_TEST(image)
{
struct GdiplusStartupInput gdiplusStartupInput;
......@@ -119,6 +130,7 @@ START_TEST(image)
test_Scan0();
test_GetImageDimension();
test_LoadingImages();
GdiplusShutdown(gdiplusToken);
}
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