mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Compiling under Linux
This commit is contained in:
parent
e47009a7e0
commit
0a333067ca
1 changed files with 3 additions and 3 deletions
|
|
@ -893,7 +893,7 @@ begin
|
|||
MappedFile := nil;
|
||||
FileHandle:= fpOpen(PChar(sFileName), O_RDONLY);
|
||||
|
||||
if FileHandle = InvalidHandleValue then Exit;
|
||||
if FileHandle = feInvalidHandle then Exit;
|
||||
if fpfstat(FileHandle, StatInfo) <> 0 then
|
||||
begin
|
||||
UnMapFile(FileMapRec);
|
||||
|
|
@ -947,10 +947,10 @@ end;
|
|||
begin
|
||||
with FileMapRec do
|
||||
begin
|
||||
if FileHandle <> InvalidHandleValue then
|
||||
if FileHandle <> feInvalidHandle then
|
||||
begin
|
||||
fpClose(FileHandle);
|
||||
FileHandle := InvalidHandleValue;
|
||||
FileHandle := feInvalidHandle;
|
||||
end;
|
||||
|
||||
if Assigned(MappedFile) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue