X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/9951872c6c46881c8b414bcd04a18320c457b811..8bc22a17b97149d69fd377f5e9f5ed617a4385db:/dnswin.pas?ds=sidebyside diff --git a/dnswin.pas b/dnswin.pas index 1f6263d..5e85f70 100644 --- a/dnswin.pas +++ b/dnswin.pas @@ -113,7 +113,7 @@ begin getmem(output.ai_addr,sizeof(tlinetsockaddr4)); if servname <> nil then output.ai_addr.InAddr.port := htons(strtoint(servname)) else output.ai_addr.InAddr.port := 0; output.ai_addr.InAddr.addr := longint(addrlist^^); - inc(integer(addrlist),4); + inc(taddrint(addrlist),4); output.ai_flags := 0; output.ai_family := af_inet; output.ai_socktype := 0;