diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-30 04:16:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-30 04:17:08 +0300 |
commit | cdbe316833b8ed9d60f5b8dd648fc4f017f9079a (patch) | |
tree | 7688aec7c3d304753a971149ae29fd81a3fb5159 /src | |
parent | 91d03c26c95a0982d4de41b039e1cdf8c55d90bc (diff) | |
download | mv-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.gz mv-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.bz2 mv-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.xz mv-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.zip |
Improve VirtFsZip::rwops_read.
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/virtfs/virtfsziprwops.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fs/virtfs/virtfsziprwops.cpp b/src/fs/virtfs/virtfsziprwops.cpp index 71e9ad397..90f2a98db 100644 --- a/src/fs/virtfs/virtfsziprwops.cpp +++ b/src/fs/virtfs/virtfsziprwops.cpp @@ -39,7 +39,6 @@ namespace VirtFsZip return -1; VirtFile *const handle = static_cast<VirtFile *const>( rw->hidden.unknown.data1); -// const uint8_t *mBuf = handle->mBuf; size_t mPos = handle->mPos; size_t mSize = handle->mSize; @@ -113,14 +112,6 @@ namespace VirtFsZip const int64_t rc = VirtFs::read(handle, ptr, CAST_U32(size), CAST_U32(maxnum)); - if (rc != static_cast<int64_t>(maxnum)) - { - if (!VirtFs::eof(handle)) /* not EOF? Must be an error. */ - { - logger->assertLog("VirtFs::rwops_seek: read error."); - } - } - return CAST_S32(rc); } |