summaryrefslogtreecommitdiff
path: root/db3x_autobackups/dbcache.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-11-21 13:10:31 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-11-21 13:10:31 +0000
commitfbc3a8fbf75f69d14ef8f545a7e43425db4eaaf7 (patch)
tree8ac91de364988140233a487d510bbcbf339e6a9f /db3x_autobackups/dbcache.c
parent778273f4cf7d1e2d41eeec5355d7fb749a0526b6 (diff)
sync with core
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@386 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'db3x_autobackups/dbcache.c')
-rw-r--r--db3x_autobackups/dbcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/db3x_autobackups/dbcache.c b/db3x_autobackups/dbcache.c
index 601670d..666dd0a 100644
--- a/db3x_autobackups/dbcache.c
+++ b/db3x_autobackups/dbcache.c
@@ -40,10 +40,10 @@ void Map()
if (hMap)
pDbCache = MapViewOfFile(hMap, FILE_MAP_ALL_ACCESS/*FILE_MAP_WRITE*/, 0, 0 ,0);
else
- DatabaseCorruption("%s (CreateFileMapping failed. Code: %d)");
+ DatabaseCorruption( _T("%s (CreateFileMapping failed. Code: %d)"));
if (!pDbCache)
- DatabaseCorruption("%s (MapViewOfFile failed. Code: %d)");
+ DatabaseCorruption( _T("%s (MapViewOfFile failed. Code: %d)"));
}
void UnMap()
@@ -64,7 +64,7 @@ void ReMap(DWORD needed)
if (needed > ChunkSize)
{
if ((needed + dwFileSize) - dbHeader.ofsFileEnd > ChunkSize)
- DatabaseCorruption("%s (Too large increment)");
+ DatabaseCorruption( _T("%s (Too large increment)"));
else
{
DWORD x = dbHeader.ofsFileEnd/ChunkSize;