dbghelp: Fetch version info only for PE modules in minidumps.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-12-14 21:11:36 +01:00 committed by Alexandre Julliard
parent 84907a9eb1
commit 04ddabfdff
1 changed files with 2 additions and 1 deletions

View File

@ -540,7 +540,8 @@ static unsigned dump_modules(struct dump_context* dc, BOOL dump_elf)
mdModule.ModuleNameRva = dc->rva;
ms->Length -= sizeof(WCHAR);
append(dc, ms, sizeof(ULONG) + ms->Length + sizeof(WCHAR));
fetch_module_versioninfo(ms->Buffer, &mdModule.VersionInfo);
if (!dump_elf) fetch_module_versioninfo(ms->Buffer, &mdModule.VersionInfo);
else memset(&mdModule.VersionInfo, 0, sizeof(mdModule.VersionInfo));
mdModule.CvRecord.DataSize = 0; /* FIXME */
mdModule.CvRecord.Rva = 0; /* FIXME */
mdModule.MiscRecord.DataSize = 0; /* FIXME */