MyTDT-Mysoft / DllCompat

dll replacement for vista+ compatibility on windows XP
30 stars 7 forks source link

ws2_3x and inet_pton/ntop functions #12

Open pachuco opened 5 years ago

pachuco commented 5 years ago

According to MSDN, inet_pton and inet_ntop functions(and their widechar variants) do not require WSAStartup function to be called first. Current implementation uses functions that require WSAStartup.

Possible replacement implementation: https://github.com/wireshark/wireshark/blob/90644c83725f979f82e7990792faaf6e847f74ea/wsutil/inet_ntop.c https://github.com/wireshark/wireshark/blob/90644c83725f979f82e7990792faaf6e847f74ea/wsutil/inet_pton.c