mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 07:22:03 +02:00
LCL carbon: fixed range error
git-svn-id: trunk@16595 -
This commit is contained in:
parent
ddd16f211e
commit
d53f365f5e
@ -682,7 +682,10 @@ begin
|
||||
if AString = nil then Exit;
|
||||
S := CFStringToStr(AString, Encoding);
|
||||
|
||||
Result := CFDataCreate(nil, @S[1], Length(S));
|
||||
if Length(S) > 0 then
|
||||
Result := CFDataCreate(nil, @S[1], Length(S))
|
||||
else
|
||||
Result := CFDataCreate(nil, nil, 0);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user