mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-11 09:29:53 +00:00
Removed LPTSTR typedef
This commit is contained in:
parent
050a59e3d4
commit
83c47adaf9
@ -1147,7 +1147,7 @@ void CHostFilename::SetEntryName()
|
|||||||
BOOL CHostFilename::isReduce() const
|
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時要修正 → 済
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -78,7 +78,7 @@ void Filepath::SetPath(const char *path)
|
|||||||
ASSERT(strlen(path) < _MAX_PATH);
|
ASSERT(strlen(path) < _MAX_PATH);
|
||||||
|
|
||||||
// Copy pathname
|
// Copy pathname
|
||||||
strcpy(m_szPath, (LPTSTR)path);
|
strcpy(m_szPath, (char *)path);
|
||||||
|
|
||||||
// Split
|
// Split
|
||||||
Split();
|
Split();
|
||||||
@ -91,24 +91,17 @@ void Filepath::SetPath(const char *path)
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void Filepath::Split()
|
void Filepath::Split()
|
||||||
{
|
{
|
||||||
LPTSTR pDir;
|
|
||||||
LPTSTR pDirName;
|
|
||||||
LPTSTR pBase;
|
|
||||||
LPTSTR pBaseName;
|
|
||||||
LPTSTR pExtName;
|
|
||||||
|
|
||||||
|
|
||||||
// パーツを初期化
|
// パーツを初期化
|
||||||
m_szDir[0] = _T('\0');
|
m_szDir[0] = _T('\0');
|
||||||
m_szFile[0] = _T('\0');
|
m_szFile[0] = _T('\0');
|
||||||
m_szExt[0] = _T('\0');
|
m_szExt[0] = _T('\0');
|
||||||
|
|
||||||
// 分離
|
// 分離
|
||||||
pDir = strdup(m_szPath);
|
char *pDir = strdup(m_szPath);
|
||||||
pDirName = dirname(pDir);
|
char *pDirName = dirname(pDir);
|
||||||
pBase = strdup(m_szPath);
|
char *pBase = strdup(m_szPath);
|
||||||
pBaseName = basename(pBase);
|
char *pBaseName = basename(pBase);
|
||||||
pExtName = strrchr(pBaseName, '.');
|
char *pExtName = strrchr(pBaseName, '.');
|
||||||
|
|
||||||
// 転送
|
// 転送
|
||||||
if (pDirName) {
|
if (pDirName) {
|
||||||
|
@ -107,7 +107,6 @@ typedef uint16_t WORD;
|
|||||||
typedef uint32_t DWORD;
|
typedef uint32_t DWORD;
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
typedef char TCHAR;
|
typedef char TCHAR;
|
||||||
typedef char *LPTSTR;
|
|
||||||
|
|
||||||
#if !defined(FALSE)
|
#if !defined(FALSE)
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user