Skip to content

Commit 09d3266

Browse files
committed
Further fixes to Linux target.
1 parent f0356a0 commit 09d3266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/PythonEngine.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ TPythonVersionProp = record
196196
// wchar_t is 4 bytes on Linux/OS X/Android but 2 bytes on Windows
197197
{$IFDEF POSIX}
198198
PWCharT = PUCS4Char;
199-
PPWCharT = PUCS4Char^;
199+
PPWCharT = ^PUCS4Char;
200200
WCharTString = UCS4String;
201201
{$ELSE}
202202
PWCharT = PWideChar;
@@ -4380,7 +4380,7 @@ procedure TPythonEngine.SetProgramArgs;
43804380
// and we want to build an array of PWCharT, pointing to valid strings.
43814381
argc := ParamCount;
43824382
SetLength(wargv, argc + 1);
4383-
// build the PWideChar array
4383+
// build the PWCharT array
43844384
SetLength(WL, argc+1);
43854385
for I := 0 to argc do begin
43864386
{
@@ -4393,7 +4393,7 @@ procedure TPythonEngine.SetProgramArgs;
43934393
else
43944394
TempS := ParamStr(I);
43954395
{$IFDEF POSIX}
4396-
WL := UnicodeStringToUCS4String(TempS);
4396+
WL[Ι] := UnicodeStringToUCS4String(TempS);
43974397
{$ELSE}
43984398
WL[I] := UnicodeString(TempS);
43994399
{$ENDIF}

0 commit comments

Comments
 (0)