[PATCH 2/3] msvcrt: Set errno through the _matherr function.

Piotr Caban piotr.caban at gmail.com
Tue Aug 1 12:25:03 CDT 2017


On 08/01/17 08:13, Alex Henrie wrote:
> @@ -252,7 +320,7 @@ float CDECL MSVCRT_powf( float x, float y )
>   {
>     /* FIXME: If x < 0 and y is not integral, set EDOM */
>     float z = powf(x,y);
> -  if (!finitef(z)) *MSVCRT__errno() = MSVCRT_EDOM;
> +  if (!finitef(z)) math_error(_DOMAIN, "powf", x, 0, ret);
ret is not defined here.

Could you please also add exception.name tests (in this case it should 
be set to pow instead of powf).

Thanks,
Piotr



More information about the wine-devel mailing list