Browse Source

Fix plResManager stricmp.

Darryl Pogue 12 years ago
parent
commit
ca87b47ca8
  1. 8
      Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

8
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))
{

Loading…
Cancel
Save