fix coap_socket_strerror() on Windows

This commit is contained in:
Mario Kicherer authored and Jon Shallow committed 2025-03-11 15:47:20 +00:00
1 parent 4c7ce99e09
commit c3b4be2aab
1 file changed
+2 -1
+2 -1
View File
@@ -2060,7 +2060,8 @@ coap_socket_format_errno(int error) {
#ifdef _WIN32
const char *
coap_socket_strerror(void) {
return coap_socket_format_errno(WSAGetLastError());
coap_win_error_to_errno();
return coap_socket_format_errno(errno);
}
#else /* _WIN32 */
const char *