[IPHLPAPI] Don't (de)initialize ws2 on dll process (attach/detach), do it on IcmpCrea...
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 20 Sep 2016 09:42:51 +0000 (09:42 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 20 Sep 2016 09:42:51 +0000 (09:42 +0000)
commite9878b1c6a8495a7799bcd886191d73ec61368df
tree07e121eada4ac22a5f94dd876e8f60aed4012cbe
parentb257841ecd4d425d8c3e695c590224ef4dd395b7
[IPHLPAPI] Don't (de)initialize ws2 on dll process (attach/detach), do it on IcmpCreateFile/IcmpCloseHandle instead, due to the circular dependency ws2_32 -> mswsock -> dnsapi(adns lib) -> iphlpapi -> ws2_32. This creates 2 references to ws2_32 and ws2_32 can't cleanup on WSACleanup. By Peter Hater. CORE-10440

svn path=/trunk/; revision=72747
reactos/dll/win32/iphlpapi/icmp.c
reactos/dll/win32/iphlpapi/iphlpapi_main.c