Commit 234babea authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

dbghelp: Zero-terminate module name in minidump.

parent 260deef7
...@@ -476,7 +476,7 @@ static void dump_modules(struct dump_context* dc, BOOL dump_elf) ...@@ -476,7 +476,7 @@ static void dump_modules(struct dump_context* dc, BOOL dump_elf)
mdModule.TimeDateStamp = dc->module[i].timestamp; mdModule.TimeDateStamp = dc->module[i].timestamp;
mdModule.ModuleNameRva = dc->rva; mdModule.ModuleNameRva = dc->rva;
ms->Length -= sizeof(WCHAR); ms->Length -= sizeof(WCHAR);
append(dc, ms, sizeof(ULONG) + ms->Length); append(dc, ms, sizeof(ULONG) + ms->Length + sizeof(WCHAR));
memset(&mdModule.VersionInfo, 0, sizeof(mdModule.VersionInfo)); /* FIXME */ memset(&mdModule.VersionInfo, 0, sizeof(mdModule.VersionInfo)); /* FIXME */
mdModule.CvRecord.DataSize = 0; /* FIXME */ mdModule.CvRecord.DataSize = 0; /* FIXME */
mdModule.CvRecord.Rva = 0; /* FIXME */ mdModule.CvRecord.Rva = 0; /* FIXME */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment