mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 06:08:16 +02:00
* fixed ForceExtension() after r16905 in case the input did not have an
exitension (it cut off the last character of the filename in that case) git-svn-id: trunk@16911 -
This commit is contained in:
parent
1868afedc8
commit
e8f654ffa5
@ -296,7 +296,7 @@ begin
|
||||
while (j>0) and (Hstr[j]<>'.') do
|
||||
dec(j);
|
||||
if j=0 then
|
||||
j:=length(Hstr);
|
||||
j:=length(Hstr)+1;
|
||||
if Ext<>'' then
|
||||
ForceExtension:=Copy(Hstr,1,j-1)+'.'+Ext
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user