[5/5] msvcm80: Add __setusermatherr_m stub.

Charles Davis cdavis at mymail.mines.edu
Fri May 4 15:26:56 CDT 2012


On May 4, 2012, at 10:10 AM, Vincent Povirk wrote:
> diff --git a/dlls/msvcm80/msvcm80_main.c b/dlls/msvcm80/msvcm80_main.c
> index cd38f5b..eb09898 100644
> --- a/dlls/msvcm80/msvcm80_main.c
> +++ b/dlls/msvcm80/msvcm80_main.c
> @@ -50,3 +50,10 @@ void __cdecl CrtImplementationDetails_RegisterModuleUninitializer(void* handler)
>      FIXME("%p: stub\n", handler);
>  }
>  
> +/* handler is a "method" with signature int32 (*handler)(_exception*), but I'm
> + * not sure what that means */
I am. Actually, it's:

int (__clrcall *handler)(struct _exception *)

i.e. a "pointer to a function intended to be called from managed code that takes a pointer to a struct _exception and returns an int." The definition of struct _exception is in <math.h> under Visual Studio.

To write such a function, you'd need a C++/CLI compiler.

Chip




More information about the wine-devel mailing list