summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_kyoto/src')
-rw-r--r--plugins/Dbx_kyoto/src/dbintf.cpp16
-rw-r--r--plugins/Dbx_kyoto/src/dbmodulechain.cpp4
-rw-r--r--plugins/Dbx_kyoto/src/init.cpp2
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Dbx_kyoto/src/dbintf.cpp b/plugins/Dbx_kyoto/src/dbintf.cpp
index ea51b273b0..95fd42998c 100644
--- a/plugins/Dbx_kyoto/src/dbintf.cpp
+++ b/plugins/Dbx_kyoto/src/dbintf.cpp
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "commonheaders.h"
-#define DBHEADER_SIGNATURE _T("KyotoCabinet")
+#define DBHEADER_SIGNATURE L"KyotoCabinet"
#define CMP_UINT32(A,B) if(A!=B) return (A<B)?-1:1;
@@ -158,16 +158,16 @@ int CDbxKyoto::Load(bool bSkipInit)
if (_taccess(m_tszProfileName, 0) == 0) {
TCHAR buf[100];
- if (0 == GetPrivateProfileString(_T("Database"), _T("Signature"), _T(""), buf, SIZEOF(buf), m_tszProfileName))
+ if (0 == GetPrivateProfileString(L"Database", L"Signature", L"", buf, SIZEOF(buf), m_tszProfileName))
return EGROKPRF_CANTREAD;
if (_tcscmp(buf, DBHEADER_SIGNATURE))
return EGROKPRF_DAMAGED;
- m_dwVersion = GetPrivateProfileInt(_T("Database"), _T("Version"), 1, m_tszProfileName);
+ m_dwVersion = GetPrivateProfileInt(L"Database", L"Version", 1, m_tszProfileName);
}
else {
- WritePrivateProfileString(_T("Database"), _T("Version"), _T("1"), m_tszProfileName);
- WritePrivateProfileString(_T("Database"), _T("Signature"), DBHEADER_SIGNATURE, m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Version", L"1", m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Signature", DBHEADER_SIGNATURE, m_tszProfileName);
DWORD keyVal = 0;
DBContact dbc = { DBCONTACT_SIGNATURE, 0, 0, 0 };
@@ -202,8 +202,8 @@ int CDbxKyoto::Load(bool bSkipInit)
int CDbxKyoto::Create(void)
{
- WritePrivateProfileString(_T("Database"), _T("Version"), _T("1"), m_tszProfileName);
- WritePrivateProfileString(_T("Database"), _T("Signature"), DBHEADER_SIGNATURE, m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Version", L"1", m_tszProfileName);
+ WritePrivateProfileString(L"Database", L"Signature", DBHEADER_SIGNATURE, m_tszProfileName);
return 0;
}
@@ -213,7 +213,7 @@ int CDbxKyoto::Check(void)
return EGROKPRF_CANTREAD;
TCHAR buf[100];
- if (0 == GetPrivateProfileString(_T("Database"), _T("Signature"), _T(""), buf, SIZEOF(buf), m_tszProfileName))
+ if (0 == GetPrivateProfileString(L"Database", L"Signature", L"", buf, SIZEOF(buf), m_tszProfileName))
return EGROKPRF_UNKHEADER;
if (_tcscmp(buf, DBHEADER_SIGNATURE))
return EGROKPRF_UNKHEADER;
diff --git a/plugins/Dbx_kyoto/src/dbmodulechain.cpp b/plugins/Dbx_kyoto/src/dbmodulechain.cpp
index ae0cd9e318..bd2e0fdc80 100644
--- a/plugins/Dbx_kyoto/src/dbmodulechain.cpp
+++ b/plugins/Dbx_kyoto/src/dbmodulechain.cpp
@@ -30,11 +30,11 @@ void CDbxKyoto::AddToList(char *name, DWORD ofs)
mn->ofs = ofs;
if (m_lMods.getIndex(mn) != -1)
- DatabaseCorruption(_T("%s (Module Name not unique)"));
+ DatabaseCorruption(L"%s (Module Name not unique)");
m_lMods.insert(mn);
if (m_lOfs.getIndex(mn) != -1)
- DatabaseCorruption(_T("%s (Module Offset not unique)"));
+ DatabaseCorruption(L"%s (Module Offset not unique)");
m_lOfs.insert(mn);
}
diff --git a/plugins/Dbx_kyoto/src/init.cpp b/plugins/Dbx_kyoto/src/init.cpp
index 02bd455228..96b1776e82 100644
--- a/plugins/Dbx_kyoto/src/init.cpp
+++ b/plugins/Dbx_kyoto/src/init.cpp
@@ -99,7 +99,7 @@ static DATABASELINK dblink =
{
sizeof(DATABASELINK),
"dbx_kyoto",
- _T("KyotoCabinet database driver"),
+ L"KyotoCabinet database driver",
makeDatabase,
grokHeader,
LoadDatabase,