mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GT-3160_ryanmkurtz_PR-1014_Patuti_fix_pdb' into Ghidra_9.1
This commit is contained in:
commit
95b58cbd94
1 changed files with 3 additions and 2 deletions
|
@ -434,16 +434,17 @@ void iterateSegments(IDiaEnumSegments * pSegments) {
|
|||
*/
|
||||
void iterateSections(PDBApiContext& ctx, IDiaEnumSectionContribs& secContribs) {
|
||||
DWORD celt = 0;
|
||||
CComPtr<IDiaSymbol> pSym ;
|
||||
CComPtr<IDiaSectionContrib> pSecContrib;
|
||||
|
||||
while ( 1 ) {
|
||||
CComPtr<IDiaSectionContrib> pSecContrib;
|
||||
if (secContribs.Next( 1, &pSecContrib, &celt ) != S_OK ) {
|
||||
break;
|
||||
}
|
||||
if (celt != 1) {
|
||||
break;
|
||||
}
|
||||
|
||||
CComPtr<IDiaSymbol> pSym;
|
||||
DWORD rva = 0;
|
||||
if (pSecContrib->get_relativeVirtualAddress( &rva ) == S_OK) {
|
||||
if (ctx.Session().findSymbolByRVA( rva, SymTagNull, &pSym ) != S_OK ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue