summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/dbcache.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-21 07:05:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-21 07:05:50 +0000
commitcd043bfeb73e6db61adccacdf284c81c95cf0c57 (patch)
treea53eb87ef241de5fb7d72bad64d53876b91a23a3 /plugins/Db3x_mmap/dbcache.cpp
parent8237a289e2f5d93c6f7ea872a6cb644a7ff9e08d (diff)
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@1087 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/dbcache.cpp')
-rw-r--r--plugins/Db3x_mmap/dbcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/dbcache.cpp b/plugins/Db3x_mmap/dbcache.cpp
index 4b48a3c907..03fcc7d7d0 100644
--- a/plugins/Db3x_mmap/dbcache.cpp
+++ b/plugins/Db3x_mmap/dbcache.cpp
@@ -88,11 +88,11 @@ PBYTE CDdxMmap::DBRead(DWORD ofs,int bytesRequired,int *bytesAvail)
// buggy read
if (ofs>= m_dwFileSize) {
log2("read from outside %d@%08x",bytesRequired,ofs);
- if (bytesAvail!=NULL) *bytesAvail = m_ChunkSize;
+ if (bytesAvail != NULL) *bytesAvail = m_ChunkSize;
return m_pNull;
}
log3((ofs+bytesRequired > m_dwFileSize)?"read %d@%08x, only %d avaliable":"read %d@%08x",bytesRequired,ofs,m_dwFileSize-ofs);
- if (bytesAvail!=NULL) *bytesAvail = m_dwFileSize - ofs;
+ if (bytesAvail != NULL) *bytesAvail = m_dwFileSize - ofs;
return m_pDbCache+ofs;
}