+2020-07-05 Keith Marshall <keith@users.osdn.me>
+
+ Revert typedef of socklen_t to signed int type.
+
+ * include/ws2tcpip.h (socklen_t): Change from unsigned int to int.
+
+ * include/wspiapi.h (__wspiapi_getnameinfo): In comparison...
+ [len < sizeof(struct sockaddr)]: ...cast RHS to socklen_t, which is
+ the type of len, to ensure type consistency.
+
2020-06-03 Keith Marshall <keith@users.osdn.me>
Prepare and publish MinGW.org WSL-5.3.3 release.
* Microsoft's invalid parameter handler, while reporting it as an
* EAI_SYSTEM exception.
*/
- if( (sa == NULL) || (len < sizeof( struct sockaddr )) )
+ if( (sa == NULL) || (len < (socklen_t)(sizeof( struct sockaddr ))) )
return __wspiapi_syserrout( EINVAL );
{ /* When the "sa" argument is valid, we delegate the call to the