Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
3523a1f6
Commit
3523a1f6
authored
Dec 02, 2021
by
Evan Ramos
Browse files
ebacktrace: Slightly improve generation of ExceptionPrinted message
parent
e474b8a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/Windows/src/backtrace.c
View file @
3523a1f6
...
...
@@ -502,13 +502,16 @@ exception_filter(LPEXCEPTION_POINTERS info)
if
(
!
initialized
)
return
EXCEPTION_CONTINUE_SEARCH
;
// EXCEPTION_CONTINUE_EXECUTION
ExceptionPrinted
=
(
char
*
)
calloc
(
strlen
(
g_output
)
+
37
+
2
*
MAX_PATH
,
sizeof
(
char
));
static
char
const
s_exception1
[]
=
"
\n
Please send "
;
static
char
const
s_exception2
[]
=
" to the maintainers of "
;
static
char
const
s_exception3
[]
=
"."
;
ExceptionPrinted
=
(
char
*
)
calloc
(
strlen
(
g_output
)
+
sizeof
(
s_exception1
)
-
1
+
sizeof
(
s_exception2
)
-
1
+
sizeof
(
s_exception3
)
-
1
+
2
*
MAX_PATH
,
sizeof
(
char
));
strcpy
(
ExceptionPrinted
,
g_output
);
strcat
(
ExceptionPrinted
,
"
\n
Please send "
);
strcat
(
ExceptionPrinted
,
s_exception1
);
strcat
(
ExceptionPrinted
,
crashlogfilename
);
strcat
(
ExceptionPrinted
,
" to the maintainers of "
);
strcat
(
ExceptionPrinted
,
s_exception2
);
strcat
(
ExceptionPrinted
,
propername
);
strcat
(
ExceptionPrinted
,
"."
);
strcat
(
ExceptionPrinted
,
s_exception3
);
{
DWORD
error
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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