peview: Fix loading 32bit symbols
@@ -69,6 +69,18 @@ VOID PvPeProperties(
{
// Load current PE pdb
// TODO: Move into seperate thread.
+
+ if (PvMappedImage.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC)
+ {
+ PhLoadModuleSymbolProvider(
+ PvSymbolProvider,
+ PvFileName->Buffer,
+ (ULONG64)PvMappedImage.NtHeaders32->OptionalHeader.ImageBase,
+ PvMappedImage.NtHeaders32->OptionalHeader.SizeOfImage
+ );
+ }
+ else
+ {
PhLoadModuleSymbolProvider(
PvSymbolProvider,
PvFileName->Buffer,
@@ -76,6 +88,7 @@ VOID PvPeProperties(
PvMappedImage.NtHeaders->OptionalHeader.SizeOfImage
);
}
+ }
if (propContext = PvCreatePropContext(PvFileName))
{
