From ca87b47ca887eea9762dce9e8f913aaa61035263 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 15 Dec 2012 16:08:14 -0800 Subject: [PATCH] Fix plResManager stricmp. --- Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp b/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp index 5de1d7dc..0872328f 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp +++ b/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp @@ -244,7 +244,7 @@ plRegistryPageNode* plResManager::FindSinglePage(const char* path) const PageMap::const_iterator it; for (it = fAllPages.begin(); it != fAllPages.end(); it++) { - if (strcmpi((it->second)->GetPagePath(), path) == 0) + if (stricmp((it->second)->GetPagePath(), path) == 0) return it->second; } @@ -1651,8 +1651,8 @@ plRegistryPageNode* plResManager::FindPage(const char* age, const char* page) co for (it = fAllPages.begin(); it != fAllPages.end(); ++it) { const plPageInfo& info = (it->second)->GetPageInfo(); - if (strcmpi(info.GetAge(), age) == 0 && - strcmpi(info.GetPage(), page) == 0) + if (stricmp(info.GetAge(), age) == 0 && + stricmp(info.GetPage(), page) == 0) return it->second; } @@ -1766,7 +1766,7 @@ bool plResManager::IteratePages(plRegistryPageIterator* iterator, const char* ag if (page->GetPageInfo().GetLocation() == plLocation::kGlobalFixedLoc) continue; - if (!ageToRestrictTo || strcmpi(page->GetPageInfo().GetAge(), ageToRestrictTo) == 0) + if (!ageToRestrictTo || stricmp(page->GetPageInfo().GetAge(), ageToRestrictTo) == 0) { if (!iterator->EatPage(page)) {