Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8f54e203
Commit
8f54e203
authored
Jul 25, 2017
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Enable floating point exceptions.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
331a7af3
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
84 additions
and
0 deletions
+84
-0
brush.c
dlls/gdiplus/tests/brush.c
+7
-0
customlinecap.c
dlls/gdiplus/tests/customlinecap.c
+7
-0
font.c
dlls/gdiplus/tests/font.c
+7
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+7
-0
graphicspath.c
dlls/gdiplus/tests/graphicspath.c
+7
-0
image.c
dlls/gdiplus/tests/image.c
+7
-0
matrix.c
dlls/gdiplus/tests/matrix.c
+7
-0
metafile.c
dlls/gdiplus/tests/metafile.c
+7
-0
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+7
-0
pen.c
dlls/gdiplus/tests/pen.c
+7
-0
region.c
dlls/gdiplus/tests/region.c
+7
-0
stringformat.c
dlls/gdiplus/tests/stringformat.c
+7
-0
No files found.
dlls/gdiplus/tests/brush.c
View file @
8f54e203
...
...
@@ -1273,6 +1273,13 @@ START_TEST(brush)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/customlinecap.c
View file @
8f54e203
...
...
@@ -315,6 +315,13 @@ START_TEST(customlinecap)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/font.c
View file @
8f54e203
...
...
@@ -1114,6 +1114,13 @@ START_TEST(font)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/graphics.c
View file @
8f54e203
...
...
@@ -6154,6 +6154,13 @@ START_TEST(graphics)
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
WNDCLASSA
class
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
memset
(
&
class
,
0
,
sizeof
(
class
)
);
class
.
lpszClassName
=
"gdiplus_test"
;
...
...
dlls/gdiplus/tests/graphicspath.c
View file @
8f54e203
...
...
@@ -1329,6 +1329,13 @@ START_TEST(graphicspath)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/image.c
View file @
8f54e203
...
...
@@ -4971,6 +4971,13 @@ START_TEST(image)
HMODULE
mod
=
GetModuleHandleA
(
"gdiplus.dll"
);
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/matrix.c
View file @
8f54e203
...
...
@@ -343,6 +343,13 @@ START_TEST(matrix)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/metafile.c
View file @
8f54e203
...
...
@@ -2745,6 +2745,13 @@ START_TEST(metafile)
ULONG_PTR
gdiplusToken
;
int
myARGC
;
char
**
myARGV
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/pathiterator.c
View file @
8f54e203
...
...
@@ -559,6 +559,13 @@ START_TEST(pathiterator)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/pen.c
View file @
8f54e203
...
...
@@ -455,6 +455,13 @@ START_TEST(pen)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
test_startup
();
...
...
dlls/gdiplus/tests/region.c
View file @
8f54e203
...
...
@@ -2262,6 +2262,13 @@ START_TEST(region)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
dlls/gdiplus/tests/stringformat.c
View file @
8f54e203
...
...
@@ -438,6 +438,13 @@ START_TEST(stringformat)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
HMODULE
hmsvcrt
;
int
(
CDECL
*
_controlfp_s
)(
unsigned
int
*
cur
,
unsigned
int
newval
,
unsigned
int
mask
);
/* Enable all FP exceptions except _EM_INEXACT, which gdi32 can trigger */
hmsvcrt
=
LoadLibraryA
(
"msvcrt"
);
_controlfp_s
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_controlfp_s"
);
if
(
_controlfp_s
)
_controlfp_s
(
0
,
0
,
0x0008001e
);
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
...
...
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