dbghelp: Initialize new structure members.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-07-17 08:17:39 +10:00 committed by Alexandre Julliard
parent 95580835bb
commit bad67b1421
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,8 @@ struct module* module_new(struct process* pcs, const WCHAR* name,
module->module.TypeInfo = FALSE;
module->module.SourceIndexed = FALSE;
module->module.Publics = FALSE;
module->module.MachineType = 0;
module->module.Reserved = 0;
module->reloc_delta = 0;
module->type = type;
@ -1201,6 +1203,8 @@ BOOL WINAPI SymGetModuleInfo64(HANDLE hProcess, DWORD64 dwAddr,
mi64.TypeInfo = miw64.TypeInfo;
mi64.SourceIndexed = miw64.SourceIndexed;
mi64.Publics = miw64.Publics;
mi64.MachineType = miw64.MachineType;
mi64.Reserved = miw64.Reserved;
memcpy(ModuleInfo, &mi64, ModuleInfo->SizeOfStruct);