aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2024-02-12 02:42:26 -0600
committerBrent Cook <busterb@gmail.com>2024-02-12 02:42:26 -0600
commit9da13ecad94caef7c18165f4d96df0e066ef2f14 (patch)
tree8dfedd27087c93c7e1576b47c395ae9b091adf8e /crypto
parent11c5075c2a062b4d64142419acac86325edac6c8 (diff)
parent64f18675926684056ad1be81a59cfef44944e240 (diff)
downloadportable-9da13ecad94caef7c18165f4d96df0e066ef2f14.tar.gz
portable-9da13ecad94caef7c18165f4d96df0e066ef2f14.tar.bz2
portable-9da13ecad94caef7c18165f4d96df0e066ef2f14.zip
Land #997, Windows: Prevent assertion pop-up up when using Debug
Diffstat (limited to 'crypto')
-rw-r--r--crypto/compat/posix_win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c
index c7cf6af..3e78a07 100644
--- a/crypto/compat/posix_win.c
+++ b/crypto/compat/posix_win.c
@@ -164,8 +164,10 @@ static void noop_handler(const wchar_t *expression, const wchar_t *function,
164} 164}
165 165
166#define BEGIN_SUPPRESS_IPH \ 166#define BEGIN_SUPPRESS_IPH \
167 int old_report_mode = _CrtSetReportMode(_CRT_ASSERT, 0); \
167 _invalid_parameter_handler old_handler = _set_thread_local_invalid_parameter_handler(noop_handler) 168 _invalid_parameter_handler old_handler = _set_thread_local_invalid_parameter_handler(noop_handler)
168#define END_SUPPRESS_IPH \ 169#define END_SUPPRESS_IPH \
170 _CrtSetReportMode(_CRT_ASSERT, old_report_mode); \
169 _set_thread_local_invalid_parameter_handler(old_handler) 171 _set_thread_local_invalid_parameter_handler(old_handler)
170 172
171#else 173#else