mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 23:23:48 +02:00
LCL carbon: TSelectDirectoryDialog - fixed range error
git-svn-id: trunk@16484 -
This commit is contained in:
parent
05e22097a0
commit
789224e558
@ -695,10 +695,13 @@ var
|
||||
I: Integer;
|
||||
begin
|
||||
SetLength(StrArray, S.Count);
|
||||
|
||||
|
||||
for I := 0 to S.Count - 1 do CreateCFString(S[I], StrArray[I]);
|
||||
|
||||
Result := CFArrayCreate(nil, @StrArray[0], Length(StrArray), nil);
|
||||
if S.Count > 0 then
|
||||
Result := CFArrayCreate(nil, @StrArray[0], Length(StrArray), nil)
|
||||
else
|
||||
Result := CFArrayCreate(nil, nil, 0, nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user