mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
More fixes to plResManager::FindPage() - it appears invalid pages can exist on
the fAllPages list. Validate each one when the list(set) is walked before operating on it.
This commit is contained in:
@ -1627,11 +1627,15 @@ plRegistryPageNode* plResManager::FindPage(const plLocation& location) const
|
||||
PageSet::const_iterator it;
|
||||
for (it = fAllPages.begin(); it != fAllPages.end(); it++)
|
||||
{
|
||||
const plLocation& pageloc = (*it)->GetPageInfo().GetLocation();
|
||||
if (pageloc == location)
|
||||
{
|
||||
fLastFoundPage = *it;
|
||||
return fLastFoundPage;
|
||||
if ((*it)->IsValid()) {
|
||||
const plLocation& pageloc = (*it)->GetPageInfo().GetLocation();
|
||||
if (pageloc == location)
|
||||
{
|
||||
fLastFoundPage = *it;
|
||||
return fLastFoundPage;
|
||||
}
|
||||
} else {
|
||||
hsStatusMessageF("Invalid Page on fAllPages @0x%x state=0x%x\n", (*it), (*it)->GetPageCondition());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user