aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarlson2k <k2k@narod.ru>2014-08-27 12:25:43 +0400
committerKarlson2k <k2k@narod.ru>2014-10-16 01:25:57 +0400
commit5c7a19af995b4933595ee9edbee0d6ac768d643d (patch)
treeddaaa1007605e0c5618e56ec9216086934d93c22 /lib
parent16b1cbad88565bc75ffd5de4f7f918cc056b27b0 (diff)
[vfs] Change CFile::Read() to use size_t/ssize_t; add checks for "Read()" return values; some fixes for new types in "Read()"; update types in code to match 'ssize_t' returned by 'Read()'; some usage of negative return values for Read()
Diffstat (limited to 'lib')
-rw-r--r--lib/UnrarXLib/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/UnrarXLib/file.cpp b/lib/UnrarXLib/file.cpp
index ddbe4f92a7..0286844fa8 100644
--- a/lib/UnrarXLib/file.cpp
+++ b/lib/UnrarXLib/file.cpp
@@ -420,7 +420,7 @@ int File::DirectRead(void *Data,int Size)
while (Size)
{
int nRead = m_File.Read(Data,Size);
- if (nRead == 0)
+ if (nRead <= 0)
break;
Read += nRead;
Data = (void*)(((char*)Data)+nRead);