summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcache.cpp
diff options
context:
space:
mode:
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 0544d4a43f..879e3a2834 100644
--- a/plugins/Db3x_mmap/src/dbcache.cpp
+++ b/plugins/Db3x_mmap/src/dbcache.cpp
@@ -37,9 +37,9 @@ void CDb3Mmap::Map()
if (m_hMap) {
m_pDbCache = (PBYTE)MapViewOfFile(m_hMap, dwAccess, 0, 0, 0);
if (!m_pDbCache)
- DatabaseCorruption(_T("%s (MapViewOfFile failed. Code: %d)"));
+ DatabaseCorruption(L"%s (MapViewOfFile failed. Code: %d)");
}
- else DatabaseCorruption(_T("%s (CreateFileMapping failed. Code: %d)"));
+ else DatabaseCorruption(L"%s (CreateFileMapping failed. Code: %d)");
}
void CDb3Mmap::ReMap(DWORD needed)
@@ -51,7 +51,7 @@ void CDb3Mmap::ReMap(DWORD needed)
if (needed > 0) {
if (needed > m_ChunkSize) {
if (needed + m_dwFileSize > m_dbHeader.ofsFileEnd + m_ChunkSize)
- DatabaseCorruption(_T("%s (Too large increment)"));
+ DatabaseCorruption(L"%s (Too large increment)");
else {
DWORD x = m_dbHeader.ofsFileEnd / m_ChunkSize;
m_dwFileSize = (x + 1)*m_ChunkSize;