summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mmap_SA/dbcache.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:52:37 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:52:37 +0000
commit00c758611455ee1a978d4644a2897dbfa17a420a (patch)
tree3edbe20e1497adf6f672a69837e9e0f70a4fdf07 /plugins/Dbx_mmap_SA/dbcache.cpp
parenteda27f234053df69a304848c91aba90897d7d097 (diff)
Dbx_mmap_SA:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@580 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mmap_SA/dbcache.cpp')
-rw-r--r--plugins/Dbx_mmap_SA/dbcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mmap_SA/dbcache.cpp b/plugins/Dbx_mmap_SA/dbcache.cpp
index 625d8aa775..bf5538a64f 100644
--- a/plugins/Dbx_mmap_SA/dbcache.cpp
+++ b/plugins/Dbx_mmap_SA/dbcache.cpp
@@ -40,7 +40,7 @@ void Map()
if (hMap)
{
- pDbCache = MapViewOfFile(hMap, FILE_MAP_ALL_ACCESS/*FILE_MAP_WRITE*/, 0, 0 ,0);
+ pDbCache = (PBYTE)MapViewOfFile(hMap, FILE_MAP_ALL_ACCESS/*FILE_MAP_WRITE*/, 0, 0 ,0);
if (!pDbCache)
DatabaseCorruption( _T("%s (MapViewOfFile failed. Code: %d)"));
}
@@ -189,7 +189,7 @@ int InitCache(void)
Map();
// zero region for reads outside the file
- pNull = calloc(ChunkSize,1);
+ pNull = (PBYTE)calloc(ChunkSize, 1);
CreateServiceFunction(MS_DB_SETSAFETYMODE,CacheSetSafetyMode);