Zheng Chen : msvcrt: Correct atan/exp/tanh errno setting.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 25 10:13:22 CDT 2015
Module: wine
Branch: master
Commit: e95dbb3b747dcd92b614578b3ca4b1c2dbfdaece
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e95dbb3b747dcd92b614578b3ca4b1c2dbfdaece
Author: Zheng Chen <chanchengcc at gmail.com>
Date: Tue Mar 24 18:09:50 2015 +0800
msvcrt: Correct atan/exp/tanh errno setting.
---
dlls/msvcrt/math.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index acac35d..73f01aa 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -363,7 +363,7 @@ double CDECL MSVCRT_asin( double x )
*/
double CDECL MSVCRT_atan( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return atan(x);
}
@@ -399,7 +399,7 @@ double CDECL MSVCRT_cosh( double x )
*/
double CDECL MSVCRT_exp( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return exp(x);
}
@@ -484,7 +484,7 @@ double CDECL MSVCRT_tan( double x )
*/
double CDECL MSVCRT_tanh( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return tanh(x);
}
More information about the wine-cvs
mailing list