X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/070ae4ab75671d43ff36f02f9773c3a23c2bd345..2c3a30778bb5a281c10736470058b5a63575a516:/dnswin.pas diff --git a/dnswin.pas b/dnswin.pas index 17a8a97..5e85f70 100644 --- a/dnswin.pas +++ b/dnswin.pas @@ -43,7 +43,7 @@ procedure init; implementation uses - { zipplet: moved pgtypes to interface because it's needed for the string definitions } + // zipplet: moved pgtypes to interface because it's needed for the string definitions lsocket,sysutils,winsock,windows,messages; type @@ -110,15 +110,15 @@ 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); + inc(taddrint(addrlist),4); output.ai_flags := 0; 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;