| 1 | #ifndef WIN32_LEAN_AND_MEAN |
| 2 | #define WIN32_LEAN_AND_MEAN |
| 3 | #endif |
| 4 | #undef __CRT__NO_INLINE |
| 5 | #define __CRT__NO_INLINE |
| 6 | #include <winsock2.h> |
| 7 | #include <wspiapi.h> |
| 8 | |
| 9 | void WINAPI |
| 10 | WspiapiLegacyFreeAddrInfo (struct addrinfo *ptHead) |
| 11 | { |
| 12 | struct addrinfo *p; |
| 13 | |
| 14 | for (p = ptHead; p != NULL; p = ptHead) |
| 15 | { |
| 16 | 	if (p->ai_canonname) |
| 17 | 	 WspiapiFree (p->ai_canonname); |
| 18 | 	if (p->ai_addr) |
| 19 | 	 WspiapiFree (p->ai_addr); |
| 20 | 	ptHead = p->ai_next; |
| 21 | 	WspiapiFree (p); |
| 22 | } |
| 23 | } |