Commit 007414ec authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32/tests: Explicitly test BeginPath() return value in the metafile path tests.

parent 3e9da621
...@@ -2963,7 +2963,8 @@ static void test_mf_GetPath(void) ...@@ -2963,7 +2963,8 @@ static void test_mf_GetPath(void)
hdc = CreateMetaFileA(NULL); hdc = CreateMetaFileA(NULL);
ok(hdc != 0, "CreateMetaFileA error %d\n", GetLastError()); ok(hdc != 0, "CreateMetaFileA error %d\n", GetLastError());
BeginPath(hdc); ret = BeginPath(hdc);
ok(!ret, "BeginPath on metafile DC should fail\n");
ret = MoveToEx(hdc, 50, 50, NULL); ret = MoveToEx(hdc, 50, 50, NULL);
ok( ret, "MoveToEx error %d.\n", GetLastError()); ok( ret, "MoveToEx error %d.\n", GetLastError());
ret = LineTo(hdc, 50, 150); ret = LineTo(hdc, 50, 150);
...@@ -3851,7 +3852,8 @@ static void test_emf_paths(void) ...@@ -3851,7 +3852,8 @@ static void test_emf_paths(void)
hdcMetafile = CreateEnhMetaFileA(GetDC(0), NULL, NULL, NULL); hdcMetafile = CreateEnhMetaFileA(GetDC(0), NULL, NULL, NULL);
ok(hdcMetafile != 0, "CreateEnhMetaFileA error %d\n", GetLastError()); ok(hdcMetafile != 0, "CreateEnhMetaFileA error %d\n", GetLastError());
BeginPath(hdcMetafile); ret = BeginPath(hdcMetafile);
ok(ret, "BeginPath error %d\n", GetLastError());
ret = MoveToEx(hdcMetafile, 50, 50, NULL); ret = MoveToEx(hdcMetafile, 50, 50, NULL);
ok( ret, "MoveToEx error %d.\n", GetLastError()); ok( ret, "MoveToEx error %d.\n", GetLastError());
ret = LineTo(hdcMetafile, 50, 150); ret = LineTo(hdcMetafile, 50, 150);
......
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