X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/4e72d8df4cde72eb1e62da6e0331af4b7f3e4c6a..51075d051580863ca073aa91883357410b358e40:/dnswin.pas diff --git a/dnswin.pas b/dnswin.pas index 17a8a97..ac1a687 100644 --- a/dnswin.pas +++ b/dnswin.pas @@ -110,7 +110,7 @@ begin getmem(output,sizeof(taddrinfo)); if assigned(prev) then prev.ai_next := output; - getmem(output.ai_addr,sizeof(tinetsockaddr)); + 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); @@ -118,7 +118,7 @@ begin output.ai_family := af_inet; output.ai_socktype := 0; output.ai_protocol := 0; - output.ai_addrlen := sizeof(tinetsockaddr); + output.ai_addrlen := sizeof(tlinetsockaddr4); output.ai_canonname := nil; output.ai_next := nil; prev := output;