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
898e17f2
Commit
898e17f2
authored
Aug 25, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _set_purecall_handler implementation.
parent
76058b14
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
4 deletions
+19
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr71.spec
dlls/msvcr71/msvcr71.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
exit.c
dlls/msvcrt/exit.c
+13
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
898e17f2
...
...
@@ -1078,7 +1078,7 @@
@ stub _set_malloc_crt_max_wait
@ stub _set_output_format
@ stub _set_printf_count_output
@
stub
_set_purecall_handler
@
cdecl _set_purecall_handler(ptr) msvcrt.
_set_purecall_handler
@ cdecl _seterrormode(long) msvcrt._seterrormode
@ cdecl -arch=i386,x86_64 -norelay _setjmp(ptr) msvcrt._setjmp
@ cdecl -arch=i386 -norelay _setjmp3(ptr long) msvcrt._setjmp3
...
...
dlls/msvcr71/msvcr71.spec
View file @
898e17f2
...
...
@@ -510,7 +510,7 @@
@ stdcall -i386 _seh_longjmp_unwind(ptr) msvcrt._seh_longjmp_unwind
@ cdecl _set_SSE2_enable(long) msvcrt._set_SSE2_enable
@ cdecl _set_error_mode(long) msvcrt._set_error_mode
@
stub
_set_purecall_handler
@
cdecl _set_purecall_handler(ptr) msvcrt.
_set_purecall_handler
@ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold
@ stub _set_security_error_handler
@ cdecl _seterrormode(long) msvcrt._seterrormode
...
...
dlls/msvcr80/msvcr80.spec
View file @
898e17f2
...
...
@@ -931,7 +931,7 @@
@ stub _set_malloc_crt_max_wait
@ stub _set_output_format
@ stub _set_printf_count_output
@
stub
_set_purecall_handler
@
cdecl _set_purecall_handler(ptr) msvcrt.
_set_purecall_handler
@ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold
@ cdecl _seterrormode(long) msvcrt._seterrormode
@ cdecl -i386 -norelay _setjmp(ptr) msvcrt._setjmp
...
...
dlls/msvcr90/msvcr90.spec
View file @
898e17f2
...
...
@@ -917,7 +917,7 @@
@ stub _set_malloc_crt_max_wait
@ stub _set_output_format
@ stub _set_printf_count_output
@
stub
_set_purecall_handler
@
cdecl _set_purecall_handler(ptr) msvcrt.
_set_purecall_handler
@ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold
@ cdecl _seterrormode(long) msvcrt._seterrormode
@ cdecl -i386 -norelay _setjmp(ptr) msvcrt._setjmp
...
...
dlls/msvcrt/exit.c
View file @
898e17f2
...
...
@@ -32,6 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
static
MSVCRT__onexit_t
*
MSVCRT_atexit_table
=
NULL
;
static
int
MSVCRT_atexit_table_size
=
0
;
static
int
MSVCRT_atexit_registered
=
0
;
/* Points to free slot */
static
MSVCRT_purecall_handler
purecall_handler
=
NULL
;
static
const
char
szMsgBoxTitle
[]
=
"Wine C++ Runtime Library"
;
...
...
@@ -251,6 +252,15 @@ int CDECL MSVCRT_atexit(void (*func)(void))
return
MSVCRT__onexit
((
MSVCRT__onexit_t
)
func
)
==
(
MSVCRT__onexit_t
)
func
?
0
:
-
1
;
}
/* _set_purecall_handler - not exported in native msvcrt */
MSVCRT_purecall_handler
CDECL
_set_purecall_handler
(
MSVCRT_purecall_handler
function
)
{
MSVCRT_purecall_handler
ret
=
purecall_handler
;
TRACE
(
"(%p)
\n
"
,
function
);
purecall_handler
=
function
;
return
ret
;
}
/*********************************************************************
* _purecall (MSVCRT.@)
...
...
@@ -258,5 +268,8 @@ int CDECL MSVCRT_atexit(void (*func)(void))
void
CDECL
_purecall
(
void
)
{
TRACE
(
"(void)
\n
"
);
if
(
purecall_handler
)
purecall_handler
();
_amsg_exit
(
25
);
}
dlls/msvcrt/msvcrt.h
View file @
898e17f2
...
...
@@ -79,6 +79,7 @@ typedef void (*__cdecl MSVCRT__beginthread_start_routine_t)(void *);
typedef
unsigned
int
(
__stdcall
*
MSVCRT__beginthreadex_start_routine_t
)(
void
*
);
typedef
int
(
*
__cdecl
MSVCRT__onexit_t
)(
void
);
typedef
void
(
__cdecl
*
MSVCRT_invalid_parameter_handler
)(
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
const
MSVCRT_wchar_t
*
,
unsigned
,
MSVCRT_uintptr_t
);
typedef
void
(
__cdecl
*
MSVCRT_purecall_handler
)(
void
);
typedef
struct
{
long
double
x
;}
MSVCRT__LDOUBLE
;
...
...
dlls/msvcrt/msvcrt.spec
View file @
898e17f2
...
...
@@ -1475,3 +1475,4 @@
@ cdecl _configthreadlocale(long)
@ cdecl _wcstod_l(wstr ptr) MSVCRT__wcstod_l
@ cdecl ___mb_cur_max_l_func(ptr)
@ cdecl _set_purecall_handler(ptr)
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