Skip to content

Commit

Permalink
Land #997, Windows: Prevent assertion pop-up up when using Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Feb 12, 2024
2 parents 11c5075 + 64f1867 commit 9da13ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/compat/posix_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ static void noop_handler(const wchar_t *expression, const wchar_t *function,
}

#define BEGIN_SUPPRESS_IPH \
int old_report_mode = _CrtSetReportMode(_CRT_ASSERT, 0); \
_invalid_parameter_handler old_handler = _set_thread_local_invalid_parameter_handler(noop_handler)
#define END_SUPPRESS_IPH \
_CrtSetReportMode(_CRT_ASSERT, old_report_mode); \
_set_thread_local_invalid_parameter_handler(old_handler)

#else
Expand Down

0 comments on commit 9da13ec

Please sign in to comment.