From 58973a21a30bf95427fd43c456e41e35c386218c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 15 Jun 2012 18:52:16 +0000 Subject: another portion of "#ifsef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@434 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_tree/DataBase.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/Dbx_tree/DataBase.cpp') diff --git a/plugins/Dbx_tree/DataBase.cpp b/plugins/Dbx_tree/DataBase.cpp index 85a9d67ccb..101d4b5d34 100644 --- a/plugins/Dbx_tree/DataBase.cpp +++ b/plugins/Dbx_tree/DataBase.cpp @@ -32,16 +32,12 @@ CDataBase *gDataBase = NULL; CDataBase::CDataBase(const char* FileName) { int len; -#ifdef UNICODE + len = MultiByteToWideChar(CP_ACP, 0, FileName, -1, NULL, 0); m_FileName[0] = new TCHAR[len + 1]; MultiByteToWideChar(CP_ACP, 0, FileName, -1, m_FileName[0], len + 1); m_FileName[0][len] = 0; -#else - len = strlen(FileName); - m_FileName[0] = new TCHAR[len + 1]; - strcpy_s(m_FileName[0], len + 1, FileName); -#endif + TCHAR * tmp = _tcsrchr(m_FileName[0], '.'); if (tmp) -- cgit v1.2.3