aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/common/Common.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-06-27 20:20:51 +0200
committerShauren <shauren.trinity@gmail.com>2021-06-27 20:20:51 +0200
commitb70f34b696c75dee9af1387d2e1536cd9edffa4b (patch)
treec53d89e5c84264d183cea463f6a214f5c0963911 /dep/CascLib/src/common/Common.cpp
parent0bbf3f7300895008a37796f3d5be7e8f23c9a143 (diff)
Dep/CascLib: Update to ladislav-zezula/CascLib@37a948bdb5f493b6a0959489baa07e1636002c3b
Diffstat (limited to 'dep/CascLib/src/common/Common.cpp')
-rw-r--r--dep/CascLib/src/common/Common.cpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/dep/CascLib/src/common/Common.cpp b/dep/CascLib/src/common/Common.cpp
index 7bec2b14a6a..953a4f0b129 100644
--- a/dep/CascLib/src/common/Common.cpp
+++ b/dep/CascLib/src/common/Common.cpp
@@ -454,9 +454,9 @@ bool CutLastPathPart(LPTSTR szWorkPath)
return true;
}
-size_t CombinePath(LPTSTR szBuffer, size_t nMaxChars, char chSeparator, va_list argList)
+size_t CombinePath(LPTSTR szBuffer, size_t nMaxChars, va_list argList)
{
- CASC_PATH<TCHAR> Path(chSeparator);
+ CASC_PATH<TCHAR> Path(PATH_SEP_CHAR);
LPCTSTR szFragment;
bool bWithSeparator = false;
@@ -470,28 +470,18 @@ size_t CombinePath(LPTSTR szBuffer, size_t nMaxChars, char chSeparator, va_list
return Path.Copy(szBuffer, nMaxChars);
}
-size_t CombinePath(LPTSTR szBuffer, size_t nMaxChars, char chSeparator, ...)
+size_t CombinePath(LPTSTR szBuffer, size_t nMaxChars, ...)
{
va_list argList;
size_t nLength;
- va_start(argList, chSeparator);
- nLength = CombinePath(szBuffer, nMaxChars, chSeparator, argList);
+ va_start(argList, nMaxChars);
+ nLength = CombinePath(szBuffer, nMaxChars, argList);
va_end(argList);
return nLength;
}
-LPTSTR CombinePath(LPCTSTR szDirectory, LPCTSTR szSubDir)
-{
- CASC_PATH<TCHAR> Path(PATH_SEP_CHAR);
-
- // Merge the path
- Path.AppendString(szDirectory, false);
- Path.AppendString(szSubDir, true);
- return Path.New();
-}
-
size_t NormalizeFileName(const unsigned char * NormTable, char * szNormName, const char * szFileName, size_t cchMaxChars)
{
char * szNormNameEnd = szNormName + cchMaxChars;