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
ba095677
Commit
ba095677
authored
Sep 04, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Test for the lowest rejected startup version.
parent
3f232785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
pen.c
dlls/gdiplus/tests/pen.c
+17
-10
No files found.
dlls/gdiplus/tests/pen.c
View file @
ba095677
...
@@ -33,21 +33,28 @@ static void test_startup(void)
...
@@ -33,21 +33,28 @@ static void test_startup(void)
Status
status
;
Status
status
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
ULONG_PTR
gdiplusToken
;
int
gpversion
;
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
gdiplusStartupInput
.
SuppressBackgroundThread
=
0
;
gdiplusStartupInput
.
SuppressBackgroundThread
=
0
;
gdiplusStartupInput
.
SuppressExternalCodecs
=
0
;
gdiplusStartupInput
.
SuppressExternalCodecs
=
0
;
status
=
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
for
(
gpversion
=
1
;
gpversion
<
256
;
gpversion
++
)
expect
(
Ok
,
status
);
{
GdiplusShutdown
(
gdiplusToken
);
gdiplusStartupInput
.
GdiplusVersion
=
gpversion
;
status
=
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
gdiplusStartupInput
.
GdiplusVersion
=
42
;
ok
(
status
==
Ok
||
status
==
UnsupportedGdiplusVersion
,
"GdiplusStartup returned %x
\n
"
,
status
);
status
=
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
GdiplusShutdown
(
gdiplusToken
);
expect
(
UnsupportedGdiplusVersion
,
status
);
if
(
status
!=
Ok
)
GdiplusShutdown
(
gdiplusToken
);
{
gpversion
--
;
break
;
}
}
ok
(
gpversion
>
0
&&
gpversion
<
42
,
"unexpected gdiplus version %i
\n
"
,
gpversion
);
trace
(
"gdiplus version is %i
\n
"
,
gpversion
);
status
=
GdipCreatePen1
((
ARGB
)
0xffff00ff
,
10
.
0
f
,
UnitPixel
,
&
pen
);
status
=
GdipCreatePen1
((
ARGB
)
0xffff00ff
,
10
.
0
f
,
UnitPixel
,
&
pen
);
...
...
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