mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
gdi32-Path_Metafile: Added patch to explicitly test BeginPath() return value in the metafile path tests.
This commit is contained in:
parent
e88eba680b
commit
5dce108e77
@ -0,0 +1,37 @@
|
||||
From a141c787d896d28487556ef6808e7124c0c1e618 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Timoshkov <dmitry@baikal.ru>
|
||||
Date: Wed, 24 Feb 2016 11:58:41 +0800
|
||||
Subject: gdi32/tests: Explicitly test BeginPath() return value in the metafile
|
||||
path tests.
|
||||
|
||||
---
|
||||
dlls/gdi32/tests/metafile.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dlls/gdi32/tests/metafile.c b/dlls/gdi32/tests/metafile.c
|
||||
index ce524f7..fd9893a 100644
|
||||
--- a/dlls/gdi32/tests/metafile.c
|
||||
+++ b/dlls/gdi32/tests/metafile.c
|
||||
@@ -2805,7 +2805,8 @@ static void test_mf_GetPath(void)
|
||||
hdc = CreateMetaFileA(NULL);
|
||||
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);
|
||||
ok( ret, "MoveToEx error %d.\n", GetLastError());
|
||||
ret = LineTo(hdc, 50, 150);
|
||||
@@ -3581,7 +3582,8 @@ static void test_emf_GetPath(void)
|
||||
hdcMetafile = CreateEnhMetaFileA(GetDC(0), NULL, NULL, NULL);
|
||||
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);
|
||||
ok( ret, "MoveToEx error %d.\n", GetLastError());
|
||||
ret = LineTo(hdcMetafile, 50, 150);
|
||||
--
|
||||
2.7.1
|
||||
|
@ -3671,10 +3671,12 @@ fi
|
||||
if test "$enable_gdi32_Path_Metafile" -eq 1; then
|
||||
patch_apply gdi32-Path_Metafile/0001-gdi32-tests-Add-some-additional-tests-for-ExtExtOut-.patch
|
||||
patch_apply gdi32-Path_Metafile/0002-gdi32-ExtTextOut-on-a-path-with-bitmap-font-selected.patch
|
||||
patch_apply gdi32-Path_Metafile/0003-gdi32-Add-support-for-paths-on-a-metafile-HDC.-v2.patch
|
||||
patch_apply gdi32-Path_Metafile/0003-gdi32-tests-Explicitly-test-BeginPath-return-value-i.patch
|
||||
patch_apply gdi32-Path_Metafile/0004-gdi32-Add-support-for-paths-on-a-metafile-HDC.-v2.patch
|
||||
(
|
||||
echo '+ { "Dmitry Timoshkov", "gdi32/tests: Add some additional tests for ExtExtOut on a path for an EMF DC.", 1 },';
|
||||
echo '+ { "Dmitry Timoshkov", "gdi32: ExtTextOut on a path with bitmap font selected shouldn'\''t fail.", 1 },';
|
||||
echo '+ { "Dmitry Timoshkov", "gdi32/tests: Explicitly test BeginPath() return value in the metafile path tests.", 1 },';
|
||||
echo '+ { "Dmitry Timoshkov", "gdi32: Add support for paths on a metafile HDC.", 3 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user