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
200fe8ac
Commit
200fe8ac
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 _purecall_handler from public header.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
264ba46b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
exit.c
dlls/msvcrt/exit.c
+4
-4
msvcrt.h
dlls/msvcrt/msvcrt.h
+0
-1
stdlib.h
include/msvcrt/stdlib.h
+4
-0
No files found.
dlls/msvcrt/exit.c
View file @
200fe8ac
...
...
@@ -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
;
...
...
dlls/msvcrt/msvcrt.h
View file @
200fe8ac
...
...
@@ -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 */
...
...
include/msvcrt/stdlib.h
View file @
200fe8ac
...
...
@@ -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
);
...
...
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