File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ TPythonVersionProp = record
196
196
// wchar_t is 4 bytes on Linux/OS X/Android but 2 bytes on Windows
197
197
{ $IFDEF POSIX}
198
198
PWCharT = PUCS4Char;
199
- PPWCharT = PUCS4Char^ ;
199
+ PPWCharT = ^PUCS4Char ;
200
200
WCharTString = UCS4String;
201
201
{ $ELSE}
202
202
PWCharT = PWideChar;
@@ -4380,7 +4380,7 @@ procedure TPythonEngine.SetProgramArgs;
4380
4380
// and we want to build an array of PWCharT, pointing to valid strings.
4381
4381
argc := ParamCount;
4382
4382
SetLength(wargv, argc + 1 );
4383
- // build the PWideChar array
4383
+ // build the PWCharT array
4384
4384
SetLength(WL, argc+1 );
4385
4385
for I := 0 to argc do begin
4386
4386
{
@@ -4393,7 +4393,7 @@ procedure TPythonEngine.SetProgramArgs;
4393
4393
else
4394
4394
TempS := ParamStr(I);
4395
4395
{ $IFDEF POSIX}
4396
- WL := UnicodeStringToUCS4String(TempS);
4396
+ WL[Ι] := UnicodeStringToUCS4String(TempS);
4397
4397
{ $ELSE}
4398
4398
WL[I] := UnicodeString(TempS);
4399
4399
{ $ENDIF}
You can’t perform that action at this time.
0 commit comments