From b2a95a07bb54ecefbac5c83983cd2503573764a2 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 2 Feb 2013 19:52:31 -0500 Subject: [PATCH] StreamSource is case insensitive --- Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp b/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp index adf125f6..c1d6847d 100644 --- a/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp +++ b/Sources/Plasma/PubUtilLib/plFile/plStreamSource.cpp @@ -107,7 +107,8 @@ std::vector plStreamSource::GetListOfNames(const plFileName& dir, co std::vector retVal; for (auto curData = fFileData.begin(); curData != fFileData.end(); curData++) { - if ((curData->second.fDir == sDir) && (curData->second.fExt == ext)) + if ((curData->second.fDir.AsString().CompareI(sDir.AsString()) == 0) && + (curData->second.fExt.CompareI(ext) == 0)) retVal.push_back(curData->second.fFilename); }