mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Fix plResManager stricmp.
This commit is contained in:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user