add text file read unit and test program to go with it
[lcore.git] / dnswin.pas
index 573c888a76c8a83369bfc0366d3b46ca63e87962..e9c2a16d1b30552806351797720adb8b75500756 100755 (executable)
@@ -233,7 +233,7 @@ var
   getnameinforesult : integer;\r
 begin\r
 \r
-  makeinaddrv(sa,ip);
+  makeinaddrv(ip,'1',sa);\r
   populateprocvars;\r
   setlength(result,1025);\r
   getnameinforesult := getnameinfo(@sa,sizeof(tinetsockaddrv),pchar(result),length(result),nil,0,0);\r