Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a6da5134
Commit
a6da5134
authored
Oct 24, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Avoid implicit casts from MetafileType to EmfType.
parent
cb4939eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
metafile.c
dlls/gdiplus/tests/metafile.c
+7
-7
No files found.
dlls/gdiplus/tests/metafile.c
View file @
a6da5134
...
...
@@ -392,16 +392,16 @@ static void test_empty(void)
stat
=
GdipRecordMetafile
(
NULL
,
EmfTypeEmfPlusOnly
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
MetafileTypeInvalid
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
stat
=
GdipRecordMetafile
(
hdc
,
(
EmfType
)
MetafileTypeInvalid
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
MetafileTypeWmf
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
stat
=
GdipRecordMetafile
(
hdc
,
(
EmfType
)
MetafileTypeWmf
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
MetafileTypeWmfPlaceable
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
stat
=
GdipRecordMetafile
(
hdc
,
(
EmfType
)
MetafileTypeWmfPlaceable
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
Metafile
TypeEmfPlusDual
+
1
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
stat
=
GdipRecordMetafile
(
hdc
,
Emf
TypeEmfPlusDual
+
1
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
EmfTypeEmfPlusOnly
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
NULL
);
...
...
@@ -1937,7 +1937,7 @@ static void test_converttoemfplus(void)
hdc
=
CreateCompatibleDC
(
0
);
stat
=
GdipRecordMetafile
(
hdc
,
MetafileTypeEmf
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
stat
=
GdipRecordMetafile
(
hdc
,
EmfTypeEmfOnly
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
metafile
);
expect
(
Ok
,
stat
);
stat
=
GdipRecordMetafile
(
hdc
,
EmfTypeEmfPlusOnly
,
&
frame
,
MetafileFrameUnitPixel
,
description
,
&
emhmeta
);
...
...
@@ -1961,10 +1961,10 @@ static void test_converttoemfplus(void)
stat
=
pGdipConvertToEmfPlus
(
graphics
,
metafile
,
&
succ
,
EmfTypeEmfPlusOnly
,
description
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
pGdipConvertToEmfPlus
(
graphics
,
metafile
,
NULL
,
MetafileTypeInvalid
,
NULL
,
&
metafile2
);
stat
=
pGdipConvertToEmfPlus
(
graphics
,
metafile
,
NULL
,
0
,
NULL
,
&
metafile2
);
expect
(
InvalidParameter
,
stat
);
stat
=
pGdipConvertToEmfPlus
(
graphics
,
metafile
,
NULL
,
Metafile
TypeEmfPlusDual
+
1
,
NULL
,
&
metafile2
);
stat
=
pGdipConvertToEmfPlus
(
graphics
,
metafile
,
NULL
,
Emf
TypeEmfPlusDual
+
1
,
NULL
,
&
metafile2
);
expect
(
InvalidParameter
,
stat
);
/* If we are already an Enhanced Metafile then the conversion fails. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment