summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcache.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
commitfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (patch)
tree8807aea6f2afce38b30ce60aa5ebf84a26992b73 /plugins/Db3x_mmap/src/dbcache.cpp
parentaf2958f2e82cb68392983da6f7f69fa3cd0c5276 (diff)
PBYTE -> uint8_t*
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcache.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbcache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/src/dbcache.cpp b/plugins/Db3x_mmap/src/dbcache.cpp
index 73c0475858..4d9cee8392 100644
--- a/plugins/Db3x_mmap/src/dbcache.cpp
+++ b/plugins/Db3x_mmap/src/dbcache.cpp
@@ -33,7 +33,7 @@ void CDb3Mmap::Map()
m_hMap = CreateFileMapping(m_hDbFile, nullptr, dwProtectMode, 0, m_dwFileSize, nullptr);
if (m_hMap) {
- m_pDbCache = (PBYTE)MapViewOfFile(m_hMap, dwAccess, 0, 0, 0);
+ m_pDbCache = (uint8_t*)MapViewOfFile(m_hMap, dwAccess, 0, 0, 0);
if (!m_pDbCache)
DatabaseCorruption(L"%s (MapViewOfFile failed. Code: %d)");
}
@@ -85,7 +85,7 @@ void CDb3Mmap::DBMoveChunk(DWORD ofsDest, DWORD ofsSource, int bytes)
}
//we are assumed to be in a mutex here
-PBYTE CDb3Mmap::DBRead(DWORD ofs, int *bytesAvail)
+uint8_t* CDb3Mmap::DBRead(DWORD ofs, int *bytesAvail)
{
// buggy read
if (ofs >= m_dwFileSize) {
@@ -175,7 +175,7 @@ int CDb3Mmap::InitMap(void)
Map();
// zero region for reads outside the file
- m_pNull = (PBYTE)calloc(m_ChunkSize, 1);
+ m_pNull = (uint8_t*)calloc(m_ChunkSize, 1);
return 0;
}