Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c698ba86
Commit
c698ba86
authored
Oct 20, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Display message box in abort() for specific CRT versions only.
parent
f943d449
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
exit.c
dlls/msvcrt/exit.c
+5
-0
Makefile.in
dlls/msvcrtd/Makefile.in
+1
-1
No files found.
dlls/msvcrt/exit.c
View file @
c698ba86
...
...
@@ -51,7 +51,10 @@ static CRITICAL_SECTION MSVCRT_onexit_cs = { &MSVCRT_onexit_cs_debug, -1, 0, 0,
extern
int
MSVCRT_app_type
;
extern
wchar_t
*
MSVCRT__wpgmptr
;
#if _MSVCR_VER > 0 || defined(_DEBUG)
static
unsigned
int
MSVCRT_abort_behavior
=
_WRITE_ABORT_MSG
|
_CALL_REPORTFAULT
;
#endif
static
int
MSVCRT_error_mode
=
_OUT_TO_DEFAULT
;
void
(
*
CDECL
_aexit_rtn
)(
int
)
=
_exit
;
...
...
@@ -250,6 +253,7 @@ void CDECL abort(void)
{
TRACE
(
"()
\n
"
);
#if (_MSVCR_VER > 0 && _MSVCR_VER < 100) || _MSVCR_VER == 120 || defined(_DEBUG)
if
(
MSVCRT_abort_behavior
&
_WRITE_ABORT_MSG
)
{
if
((
MSVCRT_error_mode
==
_OUT_TO_MSGBOX
)
||
...
...
@@ -260,6 +264,7 @@ void CDECL abort(void)
else
_cputs
(
"
\n
abnormal program termination
\n
"
);
}
#endif
raise
(
SIGABRT
);
/* in case raise() returns */
_exit
(
3
);
...
...
dlls/msvcrtd/Makefile.in
View file @
c698ba86
EXTRADEFS
=
-D_CRTIMP
=
EXTRADEFS
=
-D_CRTIMP
=
-D_DEBUG
=
MODULE
=
msvcrtd.dll
IMPORTLIB
=
msvcrtd
IMPORTS
=
ntdll
...
...
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