You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fix for issue #414 : Error Building on XE2
This commit is contained in:
@@ -109,7 +109,7 @@ begin
|
||||
while (i >= 0) do
|
||||
begin
|
||||
if (FArgVCopy[i] <> nil) then
|
||||
{$IFNDEF FPC}System.AnsiStrings.{$ENDIF}StrDispose(FArgVCopy[i]);
|
||||
{$IFDEF DELPHI18_UP}System.AnsiStrings.{$ENDIF}StrDispose(FArgVCopy[i]);
|
||||
|
||||
dec(i);
|
||||
end;
|
||||
@@ -136,11 +136,16 @@ begin
|
||||
while (i < aArgc) do
|
||||
begin
|
||||
{$IFDEF FPC}
|
||||
FArgVCopy[i] := StrAlloc(length(aArgv[i]) + 1);
|
||||
StrCopy(FArgVCopy[i], aArgv[i]);
|
||||
FArgVCopy[i] := StrAlloc(length(aArgv[i]) + 1);
|
||||
StrCopy(FArgVCopy[i], aArgv[i]);
|
||||
{$ELSE}
|
||||
FArgVCopy[i] := AnsiStrAlloc(length(aArgv[i]) + 1);
|
||||
System.AnsiStrings.StrCopy(FArgVCopy[i], aArgv[i]);
|
||||
{$IFDEF DELPHI18_UP}
|
||||
FArgVCopy[i] := System.AnsiStrings.AnsiStrAlloc(length(aArgv[i]) + 1);
|
||||
System.AnsiStrings.StrCopy(FArgVCopy[i], aArgv[i]);
|
||||
{$ELSE}
|
||||
FArgVCopy[i] := System.SysUtils.AnsiStrAlloc(length(aArgv[i]) + 1);
|
||||
System.SysUtils.StrCopy(FArgVCopy[i], aArgv[i]);
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
|
||||
inc(i);
|
||||
|
||||
Reference in New Issue
Block a user