another fix for the new warning introduced in r39347, hopefully it fixes win32 build

git-svn-id: trunk@39352 -
This commit is contained in:
Károly Balogh 2018-06-30 16:51:41 +00:00
parent 05ac42766d
commit e7025b6759

View File

@ -1300,6 +1300,7 @@ end;
GetShortName:=n;
{$ifdef win32}
hs:=n+#0;
hs2:='';
{ may become longer in case of e.g. ".a" -> "a~1" or so }
setlength(hs2,length(hs)*2);
i:=Windows.GetShortPathName(@hs[1],@hs2[1],length(hs)*2);