mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Error checking
This commit is contained in:
parent
fd14a14ba2
commit
5a25ae660d
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ begin
|
|||
bRetryRead := False;
|
||||
BytesRead := FileRead(hFile, FBuffer^, BytesToRead);
|
||||
|
||||
if (BytesRead = 0) then
|
||||
if (BytesRead <= 0) then
|
||||
Raise EReadError.Create(mbSysErrorMessage(GetLastOSError));
|
||||
|
||||
TotalBytesToRead := TotalBytesToRead - BytesRead;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue