msvcrt: Use _purecall_handler from public header.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-12-04 15:49:58 +01:00 committed by Alexandre Julliard
parent 264ba46bcd
commit 200fe8ac42
3 changed files with 8 additions and 5 deletions

View File

@ -31,7 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#define LOCK_EXIT _lock(_EXIT_LOCK1)
#define UNLOCK_EXIT _unlock(_EXIT_LOCK1)
static MSVCRT_purecall_handler purecall_handler = NULL;
static _purecall_handler purecall_handler = NULL;
static _onexit_table_t MSVCRT_atexit_table;
@ -461,9 +461,9 @@ void CDECL _register_thread_local_exe_atexit_callback(_tls_callback_type callbac
/*********************************************************************
* _set_purecall_handler (MSVCR71.@)
*/
MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler function)
_purecall_handler CDECL _set_purecall_handler(_purecall_handler function)
{
MSVCRT_purecall_handler ret = purecall_handler;
_purecall_handler ret = purecall_handler;
TRACE("(%p)\n", function);
purecall_handler = function;
@ -475,7 +475,7 @@ MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler func
/*********************************************************************
* _get_purecall_handler (MSVCR80.@)
*/
MSVCRT_purecall_handler CDECL _get_purecall_handler(void)
_purecall_handler CDECL _get_purecall_handler(void)
{
TRACE("\n");
return purecall_handler;

View File

@ -40,7 +40,6 @@ typedef void (__cdecl *unexpected_function)(void);
typedef void (__cdecl *_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info);
void __cdecl terminate(void);
typedef void (__cdecl *MSVCRT_purecall_handler)(void);
typedef void (__cdecl *MSVCRT_security_error_handler)(int, void *);
typedef struct {ULONG x80[3];} MSVCRT__LDOUBLE; /* Intel 80 bit FP format has sizeof() 12 */

View File

@ -230,6 +230,10 @@ _ACRTIMP int __cdecl system(const char*);
_ACRTIMP void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
_ACRTIMP void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
typedef void (__cdecl *_purecall_handler)(void);
_ACRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler);
_ACRTIMP _purecall_handler __cdecl _get_purecall_handler(void);
typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t*, const wchar_t*, const wchar_t*, unsigned, uintptr_t);
_ACRTIMP _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler);
_ACRTIMP _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);