- Fix symbols loading (PE sections are mapped now, not just read 1:1 from the disk, thus a need to use SectionHeader->VirtualAddress instead of SectionHeader->PointerToRawData).

svn path=/trunk/; revision=27301
This commit is contained in:
Aleksey Bragin 2007-06-28 09:26:05 +00:00
parent 1289745bf8
commit 13e2fd4bc6

View file

@ -77,7 +77,7 @@ RosSymCreateFromMem(PVOID ImageStart, ULONG_PTR ImageSize, PROSSYM_INFO *RosSymI
}
/* Load it */
return RosSymCreateFromRaw((char *) ImageStart + SectionHeader->PointerToRawData,
return RosSymCreateFromRaw((char *) ImageStart + SectionHeader->VirtualAddress,
SectionHeader->SizeOfRawData, RosSymInfo);
}