浏览代码

* call closesocket for mswindows instead of fileclose. Probably needs to be checked for Amiga and OS/2 too.

git-svn-id: trunk@25187 -
marco 12 年之前
父节点
当前提交
ba263f162b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/fcl-net/src/ssockets.pp

+ 2 - 2
packages/fcl-net/src/ssockets.pp

@@ -246,11 +246,11 @@ end;
 destructor TSocketStream.Destroy;
 begin
   if FSocketInitialized then
-  {$ifdef netware}
+  {$if  defined(netware) or defined(mswindows)}
   CloseSocket(Handle);
   {$else}
   FileClose(Handle);
-  {$endif}
+  {$ifend}
   inherited Destroy;
 end;