Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
264ba46b
Commit
264ba46b
authored
Dec 04, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use _invalid_parameter_handler from public header.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2748a99
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
errno.c
dlls/msvcrt/errno.c
+9
-9
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-2
No files found.
dlls/msvcrt/errno.c
View file @
264ba46b
...
...
@@ -126,7 +126,7 @@ char *MSVCRT__sys_errlist[] =
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. */
void
msvcrt_set_errno
(
int
err
)
...
...
@@ -503,7 +503,7 @@ void CDECL _invalid_parameter_noinfo_noreturn(void)
/*********************************************************************
* _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
"
);
return
invalid_parameter_handler
;
...
...
@@ -512,10 +512,10 @@ MSVCRT_invalid_parameter_handler CDECL _get_invalid_parameter_handler(void)
/*********************************************************************
* _set_invalid_parameter_handler (MSVCR80.@)
*/
MSVCRT
_invalid_parameter_handler
CDECL
_set_invalid_parameter_handler
(
MSVCRT
_invalid_parameter_handler
handler
)
_invalid_parameter_handler
CDECL
_set_invalid_parameter_handler
(
_invalid_parameter_handler
handler
)
{
MSVCRT
_invalid_parameter_handler
old
=
invalid_parameter_handler
;
_invalid_parameter_handler
old
=
invalid_parameter_handler
;
TRACE
(
"(%p)
\n
"
,
handler
);
...
...
@@ -530,7 +530,7 @@ MSVCRT_invalid_parameter_handler CDECL _set_invalid_parameter_handler(
/*********************************************************************
* _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
"
);
return
msvcrt_get_thread_data
()
->
invalid_parameter_handler
;
...
...
@@ -539,11 +539,11 @@ MSVCRT_invalid_parameter_handler CDECL _get_thread_local_invalid_parameter_handl
/*********************************************************************
* _set_thread_local_invalid_parameter_handler (UCRTBASE.@)
*/
MSVCRT
_invalid_parameter_handler
CDECL
_set_thread_local_invalid_parameter_handler
(
MSVCRT
_invalid_parameter_handler
handler
)
_invalid_parameter_handler
CDECL
_set_thread_local_invalid_parameter_handler
(
_invalid_parameter_handler
handler
)
{
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
);
...
...
dlls/msvcrt/msvcrt.h
View file @
264ba46b
...
...
@@ -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_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_security_error_handler
)(
int
,
void
*
);
...
...
@@ -164,7 +163,7 @@ struct __thread_data {
char
cached_locale
[
131
];
void
*
unk10
[
100
];
#if _MSVCR_VER >= 140
MSVCRT_invalid_parameter_handler
invalid_parameter_handler
;
_invalid_parameter_handler
invalid_parameter_handler
;
#endif
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment