summary refs log tree commit diff
path: root/compat/posix_win.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2026-06-01 14:38:30 -0400
committerJune McEnroe <june@causal.agency>2026-06-01 14:38:30 -0400
commitea9a686c1d3f4d7e8e80a907629149ce79b1964a (patch)
tree3bdfd8bbfc03aea5816109a1919fc39177f13885 /compat/posix_win.c
parentImport LibreSSL 3.8.2 (diff)
downloadlibretls-ea9a686c1d3f4d7e8e80a907629149ce79b1964a.tar.gz
libretls-ea9a686c1d3f4d7e8e80a907629149ce79b1964a.zip
Import LibreSSL 3.8.3
Diffstat (limited to 'compat/posix_win.c')
-rw-r--r--compat/posix_win.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/posix_win.c b/compat/posix_win.c
index b3a4687..3e78a07 100644
--- a/compat/posix_win.c
+++ b/compat/posix_win.c
@@ -9,8 +9,8 @@
 
 #define NO_REDEF_POSIX_FUNCTIONS
 
-#include <windows.h>
 #include <ws2tcpip.h>
+#include <windows.h>
 
 #include <errno.h>
 #include <fcntl.h>
@@ -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