aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/CascFindFile.cpp
diff options
context:
space:
mode:
authorDuarte Duarte <dnpd.dd@gmail.com>2015-02-22 05:38:27 +0000
committerDuarte Duarte <dnpd.dd@gmail.com>2015-02-22 05:38:27 +0000
commitabfeb890943638f8704dd776592a2acbd7425782 (patch)
tree85a38ff45ba73f43d297e9869230f773d19a5c02 /dep/CascLib/src/CascFindFile.cpp
parentea9eccae8596d440c372b0d9709d4def4b46e648 (diff)
Dep/CascLib: Update to https://github.com/ladislav-zezula/CascLib/commit/4235e5f2033e2de709c83034503d49e532d03630
Diffstat (limited to 'dep/CascLib/src/CascFindFile.cpp')
-rw-r--r--dep/CascLib/src/CascFindFile.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/dep/CascLib/src/CascFindFile.cpp b/dep/CascLib/src/CascFindFile.cpp
index 753e00a90a2..0bfe16cae1d 100644
--- a/dep/CascLib/src/CascFindFile.cpp
+++ b/dep/CascLib/src/CascFindFile.cpp
@@ -149,18 +149,22 @@ static bool DoStorageSearch_ListFile(TCascSearch * pSearch, PCASC_FIND_DATA pFin
{
PCASC_ROOT_ENTRY pRootEntry;
TCascStorage * hs = pSearch->hs;
+ char szFileName2[MAX_PATH + 1];
DWORD TableIndex = 0;
// Get next file from the listfile
while(ListFile_GetNext(pSearch->pCache, pSearch->szMask, pSearch->szFileName, MAX_PATH))
{
#ifdef _DEBUG
- //if(!_stricmp(pSearch->szFileName, "Character\\NightElf\\Female\\NightElf_FemaleFacialLowerHair01_02_HD.blp"))
- // DebugBreak();
+// if(!_stricmp(pSearch->szFileName, "Character\\BloodElf\\Female\\DeathKnightEyeGlow.blp"))
+// DebugBreak();
#endif
+ // Normalize the file name found in the list file
+ NormalizeFileName_UpperBkSlash(szFileName2, pSearch->szFileName, MAX_PATH);
+
// Find the root entry
- pRootEntry = FindRootEntry(hs, pSearch->szFileName, &TableIndex);
+ pRootEntry = FindRootEntry(hs, szFileName2, &TableIndex);
if(pRootEntry != NULL)
{
// Verify whether the file exists in the storage