summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/dbcache.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:31:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:31:32 +0000
commitd11afafa9a4ffcf5c33f64d55d1ce22e452d6120 (patch)
treed409c487fd54476c45f55f3d385d32745e9f9f7d /plugins/Db3x_mmap/dbcache.cpp
parent1204c8ca267a83f1df6b8087bbfc5335ffb5090d (diff)
Db3x_mmap:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/dbcache.cpp')
-rw-r--r--plugins/Db3x_mmap/dbcache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/dbcache.cpp b/plugins/Db3x_mmap/dbcache.cpp
index 625d8aa775..f5b953f615 100644
--- a/plugins/Db3x_mmap/dbcache.cpp
+++ b/plugins/Db3x_mmap/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,9 +189,9 @@ 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);
+ CreateServiceFunction(MS_DB_SETSAFETYMODE, CacheSetSafetyMode);
return 0;
}