Commit 264ba46b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Use _invalid_parameter_handler from public header.

parent b2748a99
...@@ -126,7 +126,7 @@ char *MSVCRT__sys_errlist[] = ...@@ -126,7 +126,7 @@ char *MSVCRT__sys_errlist[] =
unsigned int MSVCRT__sys_nerr = ARRAY_SIZE(MSVCRT__sys_errlist) - 1; unsigned int MSVCRT__sys_nerr = ARRAY_SIZE(MSVCRT__sys_errlist) - 1;
static MSVCRT_invalid_parameter_handler invalid_parameter_handler = NULL; static _invalid_parameter_handler invalid_parameter_handler = NULL;
/* INTERNAL: Set the crt and dos errno's from the OS error given. */ /* INTERNAL: Set the crt and dos errno's from the OS error given. */
void msvcrt_set_errno(int err) void msvcrt_set_errno(int err)
...@@ -503,7 +503,7 @@ void CDECL _invalid_parameter_noinfo_noreturn(void) ...@@ -503,7 +503,7 @@ void CDECL _invalid_parameter_noinfo_noreturn(void)
/********************************************************************* /*********************************************************************
* _get_invalid_parameter_handler (MSVCR80.@) * _get_invalid_parameter_handler (MSVCR80.@)
*/ */
MSVCRT_invalid_parameter_handler CDECL _get_invalid_parameter_handler(void) _invalid_parameter_handler CDECL _get_invalid_parameter_handler(void)
{ {
TRACE("\n"); TRACE("\n");
return invalid_parameter_handler; return invalid_parameter_handler;
...@@ -512,10 +512,10 @@ MSVCRT_invalid_parameter_handler CDECL _get_invalid_parameter_handler(void) ...@@ -512,10 +512,10 @@ MSVCRT_invalid_parameter_handler CDECL _get_invalid_parameter_handler(void)
/********************************************************************* /*********************************************************************
* _set_invalid_parameter_handler (MSVCR80.@) * _set_invalid_parameter_handler (MSVCR80.@)
*/ */
MSVCRT_invalid_parameter_handler CDECL _set_invalid_parameter_handler( _invalid_parameter_handler CDECL _set_invalid_parameter_handler(
MSVCRT_invalid_parameter_handler handler) _invalid_parameter_handler handler)
{ {
MSVCRT_invalid_parameter_handler old = invalid_parameter_handler; _invalid_parameter_handler old = invalid_parameter_handler;
TRACE("(%p)\n", handler); TRACE("(%p)\n", handler);
...@@ -530,7 +530,7 @@ MSVCRT_invalid_parameter_handler CDECL _set_invalid_parameter_handler( ...@@ -530,7 +530,7 @@ MSVCRT_invalid_parameter_handler CDECL _set_invalid_parameter_handler(
/********************************************************************* /*********************************************************************
* _get_thread_local_invalid_parameter_handler (UCRTBASE.@) * _get_thread_local_invalid_parameter_handler (UCRTBASE.@)
*/ */
MSVCRT_invalid_parameter_handler CDECL _get_thread_local_invalid_parameter_handler(void) _invalid_parameter_handler CDECL _get_thread_local_invalid_parameter_handler(void)
{ {
TRACE("\n"); TRACE("\n");
return msvcrt_get_thread_data()->invalid_parameter_handler; return msvcrt_get_thread_data()->invalid_parameter_handler;
...@@ -539,11 +539,11 @@ MSVCRT_invalid_parameter_handler CDECL _get_thread_local_invalid_parameter_handl ...@@ -539,11 +539,11 @@ MSVCRT_invalid_parameter_handler CDECL _get_thread_local_invalid_parameter_handl
/********************************************************************* /*********************************************************************
* _set_thread_local_invalid_parameter_handler (UCRTBASE.@) * _set_thread_local_invalid_parameter_handler (UCRTBASE.@)
*/ */
MSVCRT_invalid_parameter_handler CDECL _set_thread_local_invalid_parameter_handler( _invalid_parameter_handler CDECL _set_thread_local_invalid_parameter_handler(
MSVCRT_invalid_parameter_handler handler) _invalid_parameter_handler handler)
{ {
thread_data_t *data = msvcrt_get_thread_data(); thread_data_t *data = msvcrt_get_thread_data();
MSVCRT_invalid_parameter_handler old = data->invalid_parameter_handler; _invalid_parameter_handler old = data->invalid_parameter_handler;
TRACE("(%p)\n", handler); TRACE("(%p)\n", handler);
......
...@@ -40,7 +40,6 @@ typedef void (__cdecl *unexpected_function)(void); ...@@ -40,7 +40,6 @@ typedef void (__cdecl *unexpected_function)(void);
typedef void (__cdecl *_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info); typedef void (__cdecl *_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info);
void __cdecl terminate(void); void __cdecl terminate(void);
typedef void (__cdecl *MSVCRT_invalid_parameter_handler)(const wchar_t*, const wchar_t*, const wchar_t*, unsigned, uintptr_t);
typedef void (__cdecl *MSVCRT_purecall_handler)(void); typedef void (__cdecl *MSVCRT_purecall_handler)(void);
typedef void (__cdecl *MSVCRT_security_error_handler)(int, void *); typedef void (__cdecl *MSVCRT_security_error_handler)(int, void *);
...@@ -164,7 +163,7 @@ struct __thread_data { ...@@ -164,7 +163,7 @@ struct __thread_data {
char cached_locale[131]; char cached_locale[131];
void *unk10[100]; void *unk10[100];
#if _MSVCR_VER >= 140 #if _MSVCR_VER >= 140
MSVCRT_invalid_parameter_handler invalid_parameter_handler; _invalid_parameter_handler invalid_parameter_handler;
#endif #endif
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment