mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 05:08:06 +02:00
* 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:
parent
7cfc737866
commit
c9dce154fd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user