LCL carbon: fixed range error

git-svn-id: trunk@16595 -
This commit is contained in:
tombo 2008-09-15 14:51:06 +00:00
parent ddd16f211e
commit d53f365f5e

View File

@ -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;
{------------------------------------------------------------------------------