mORMot and Open Source friends
Check-in [5924b5bc17]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:{4606} fixed InitSocketInterface() thread safety - but you shouldn't call this function, anyway
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5924b5bc179d4159b08ef65544ad8f4353fc38d4
User & Date: ab 2018-06-08 08:30:32
Context
2018-06-08
09:22
{4607} breaking change: hardened IV derivation for SQLite3 AES encryption - set ForceSQLite3LegacyAES=true to convert your existing databases to the new safer format check-in: 5b677a7d3d user: ab tags: trunk
08:30
{4606} fixed InitSocketInterface() thread safety - but you shouldn't call this function, anyway check-in: 5924b5bc17 user: ab tags: trunk
2018-06-07
15:50
{4605} new TSynPersistentStoreJson class check-in: 41385f052a user: ab tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SynWinSock.pas.

1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462


1463
1464
1465
1466
1467
1468
1469
1470
  else
    result := -1; // not available on XP/2K
end;

function InitSocketInterface(const Stack: TFileName = ''): Boolean;
begin
  result := False;
  SockEnhancedApi := False;
  SockSChannelApi := False;
  EnterCriticalSection(SynSockCS);
  try
    if SynSockCount = 0 then begin


      SockWship6Api := False;
      if Stack = '' then
        LibHandle := LoadLibrary(DLLStackName)
      else
        LibHandle := LoadLibrary(pointer(Stack));
      if LibHandle <> 0 then begin
        WSAPoll := GetProcAddress(LibHandle, 'WSAPoll');
        WSAIoctl := GetProcAddress(LibHandle, 'WSAIoctl');






<
<



>
>
|







1451
1452
1453
1454
1455
1456
1457


1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
  else
    result := -1; // not available on XP/2K
end;

function InitSocketInterface(const Stack: TFileName = ''): Boolean;
begin
  result := False;


  EnterCriticalSection(SynSockCS);
  try
    if SynSockCount = 0 then begin
      SockEnhancedApi := false;
      SockSChannelApi := false;
      SockWship6Api := false;
      if Stack = '' then
        LibHandle := LoadLibrary(DLLStackName)
      else
        LibHandle := LoadLibrary(pointer(Stack));
      if LibHandle <> 0 then begin
        WSAPoll := GetProcAddress(LibHandle, 'WSAPoll');
        WSAIoctl := GetProcAddress(LibHandle, 'WSAIoctl');

Changes to SynopseCommit.inc.

1
'1.18.4605'
|
1
'1.18.4606'