|
|
@ -1627,11 +1627,15 @@ plRegistryPageNode* plResManager::FindPage(const plLocation& location) const |
|
|
|
PageSet::const_iterator it; |
|
|
|
PageSet::const_iterator it; |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); it++) |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); it++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const plLocation& pageloc = (*it)->GetPageInfo().GetLocation(); |
|
|
|
if ((*it)->IsValid()) { |
|
|
|
if (pageloc == location) |
|
|
|
const plLocation& pageloc = (*it)->GetPageInfo().GetLocation(); |
|
|
|
{ |
|
|
|
if (pageloc == location) |
|
|
|
fLastFoundPage = *it; |
|
|
|
{ |
|
|
|
return fLastFoundPage; |
|
|
|
fLastFoundPage = *it; |
|
|
|
|
|
|
|
return fLastFoundPage; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
hsStatusMessageF("Invalid Page on fAllPages @0x%x state=0x%x\n", (*it), (*it)->GetPageCondition()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|