Explorar el Código

* Better check for error

git-svn-id: trunk@38613 -
michael hace 7 años
padre
commit
61752466d0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/fcl-net/src/sslsockets.pp

+ 1 - 1
packages/fcl-net/src/sslsockets.pp

@@ -252,7 +252,7 @@ begin
   FSSLLastErrorString:='';
   FLastError:=ErrGetError;
   ErrClearError;
-  Result:=(FLastError>=1);
+  Result:=(FLastError<>0);
   if not Result then
     begin
     S:=StringOfChar(#0,256);