mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 16:55:55 +02:00
lcl: use THandle instead of integer for the file handles
git-svn-id: trunk@25858 -
This commit is contained in:
parent
8ce99dc2a6
commit
1f9a50c44a
@ -815,13 +815,13 @@ end;
|
||||
function FileIsSymlink(const AFilename: string): boolean;
|
||||
{$IFDEF WINDOWS}
|
||||
var
|
||||
FileHandle: Integer;
|
||||
FileHandle: THandle;
|
||||
FileInfo: TBYHANDLEFILEINFORMATION;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF WINDOWS}
|
||||
FileHandle := FileOpen(UTF8ToSys(AFileName), fmOpenRead or fmShareDenyNone);
|
||||
if FileHandle >= 0 then
|
||||
if FileHandle <> feInvalidHandle then
|
||||
begin
|
||||
GetFileInformationByHandle(HFile(FileHandle), FileInfo);
|
||||
Result := FileInfo.nNumberOfLinks > 1;
|
||||
|
Loading…
Reference in New Issue
Block a user