mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 05:10:16 +02:00
* avoid rangecheck mantis 0038791
git-svn-id: trunk@49250 -
This commit is contained in:
parent
e540e8f52e
commit
8ad6271fa1
@ -1046,6 +1046,7 @@ begin
|
|||||||
if L > 0 then
|
if L > 0 then
|
||||||
begin
|
begin
|
||||||
SetLength(Buf,L-1); // L includes terminating NULL
|
SetLength(Buf,L-1); // L includes terminating NULL
|
||||||
|
if l>1 Then
|
||||||
L := GetLocaleInfoW(LID, LT, @Buf[1], L);
|
L := GetLocaleInfoW(LID, LT, @Buf[1], L);
|
||||||
result:=buf;
|
result:=buf;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user