fix screwup in previous commit
[lcore.git] / dnswin.pas
index 573c888a76c8a83369bfc0366d3b46ca63e87962..9f66cda0dcafa3e6876aafe349a4107fcefda00e 100755 (executable)
@@ -233,7 +233,7 @@ var
   getnameinforesult : integer;\r
 begin\r
 \r
   getnameinforesult : integer;\r
 begin\r
 \r
-  makeinaddrv(sa,ip);
+  makeinaddrv(ip,'1',sa);
   populateprocvars;\r
   setlength(result,1025);\r
   getnameinforesult := getnameinfo(@sa,sizeof(tinetsockaddrv),pchar(result),length(result),nil,0,0);\r
   populateprocvars;\r
   setlength(result,1025);\r
   getnameinforesult := getnameinfo(@sa,sizeof(tinetsockaddrv),pchar(result),length(result),nil,0,0);\r