Ansistring compatibility on Delphi 10+
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@232 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
f780253e44
commit
93657c8a92
@ -73,6 +73,8 @@ Ad-Hoc key and certificate for each incomming connection by self. It slowdown
|
||||
accepting of new connections!
|
||||
}
|
||||
|
||||
{$INCLUDE 'jedi.inc'}
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$MODE DELPHI}
|
||||
{$ENDIF}
|
||||
@ -89,6 +91,7 @@ interface
|
||||
|
||||
uses
|
||||
SysUtils, Classes,
|
||||
{$IFDEF DELPHI23_UP} AnsiStrings, {$ENDIF}
|
||||
blcksock, synsock, synautil,
|
||||
ssl_openssl11_lib;
|
||||
|
||||
@ -169,7 +172,7 @@ begin
|
||||
if Length(Password) > (Size - 1) then
|
||||
SetLength(Password, Size - 1);
|
||||
Result := Length(Password);
|
||||
StrLCopy(buf, PAnsiChar(Password + #0), Result + 1);
|
||||
{$IFDEF DELPHI23_UP}AnsiStrings.{$ENDIF}StrLCopy(buf, PAnsiChar(Password + #0), Result + 1);
|
||||
end;
|
||||
|
||||
{==============================================================================}
|
||||
|
Loading…
x
Reference in New Issue
Block a user