X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/51075d051580863ca073aa91883357410b358e40..69598fec083b67c8567293c7b8a397b64175bd45:/dnswin.pas?ds=sidebyside diff --git a/dnswin.pas b/dnswin.pas index ac1a687..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 @@ -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;