dbghelp: Zero-terminate module name in minidump.

This commit is contained in:
Andrey Turkin 2007-04-29 02:14:15 +04:00 committed by Alexandre Julliard
parent 260deef761
commit 234babeaf0
1 changed files with 1 additions and 1 deletions

View File

@ -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 */