mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:27:56 +02:00
rtl: apply patch of Inoussa which fixes undefined result of UnicodeToLower and UnicodeToUpper (mantis #0024889)
git-svn-id: trunk@25315 -
This commit is contained in:
parent
99e67d19cc
commit
d375cc88a1
@ -1070,8 +1070,8 @@ begin
|
||||
i := ((PtrUInt(pr) - PtrUInt(@r[1])) div SizeOf(UnicodeChar));
|
||||
SetLength(r,i);
|
||||
AResultString := r;
|
||||
Result := 0;
|
||||
end;
|
||||
Result := 0;
|
||||
end;
|
||||
|
||||
function UnicodeToLower(
|
||||
@ -1136,8 +1136,8 @@ begin
|
||||
i := ((PtrUInt(pr) - PtrUInt(@r[1])) div SizeOf(UnicodeChar));
|
||||
SetLength(r,i);
|
||||
AResultString := r;
|
||||
Result := 0;
|
||||
end;
|
||||
Result := 0;
|
||||
end;
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user