Removed LPTSTR typedef

This commit is contained in:
Uwe Seimet 2021-08-25 21:52:36 +02:00
parent 050a59e3d4
commit 83c47adaf9
3 changed files with 7 additions and 15 deletions

View File

@ -1147,7 +1147,7 @@ void CHostFilename::SetEntryName()
BOOL CHostFilename::isReduce() const
{
return strcmp((LPTSTR)m_szHost, (const char*)m_szHuman) != 0; /// @warning Unicode時要修正 → 済
return strcmp((char *)m_szHost, (const char*)m_szHuman) != 0; /// @warning Unicode時要修正 → 済
}
//---------------------------------------------------------------------------

View File

@ -78,7 +78,7 @@ void Filepath::SetPath(const char *path)
ASSERT(strlen(path) < _MAX_PATH);
// Copy pathname
strcpy(m_szPath, (LPTSTR)path);
strcpy(m_szPath, (char *)path);
// Split
Split();
@ -91,24 +91,17 @@ void Filepath::SetPath(const char *path)
//---------------------------------------------------------------------------
void Filepath::Split()
{
LPTSTR pDir;
LPTSTR pDirName;
LPTSTR pBase;
LPTSTR pBaseName;
LPTSTR pExtName;
// パーツを初期化
m_szDir[0] = _T('\0');
m_szFile[0] = _T('\0');
m_szExt[0] = _T('\0');
// 分離
pDir = strdup(m_szPath);
pDirName = dirname(pDir);
pBase = strdup(m_szPath);
pBaseName = basename(pBase);
pExtName = strrchr(pBaseName, '.');
char *pDir = strdup(m_szPath);
char *pDirName = dirname(pDir);
char *pBase = strdup(m_szPath);
char *pBaseName = basename(pBase);
char *pExtName = strrchr(pBaseName, '.');
// 転送
if (pDirName) {

View File

@ -107,7 +107,6 @@ typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef int BOOL;
typedef char TCHAR;
typedef char *LPTSTR;
#if !defined(FALSE)
#define FALSE 0