* add boolean that can be changed to avoid shutting down winsock. This can trouble other DLLs. Mantis #22597

git-svn-id: trunk@24446 -
This commit is contained in:
marco 2013-05-05 08:42:08 +00:00
parent 7cfc737866
commit c9dce154fd

View File

@ -53,6 +53,10 @@ const
{$i socketsh.inc}
{$i fpwinsockh.inc}
// finalizing Winsock2 stack might upset other DLLS. Mantis #22597
var
NoWinsockCleanupCall : Boolean = false;
Implementation
{ Include filerec and textrec structures }
@ -276,5 +280,6 @@ var
initialization
WSAStartUp(WINSOCK_VERSION,wsadata);
finalization
WSACleanUp;
If Not NoWinsockCleanupCall Then
WSACleanUp;
end.