Eric Pouech : dbghelp: Correctly initialize the module_pair structure in SymGetTypeFromName.
Alexandre Julliard
julliard at winehq.org
Tue Jul 6 18:09:36 CDT 2021
Module: wine
Branch: master
Commit: 71e2ab0ed3e18b5b6f521176803844c2aa1f5871
URL: https://source.winehq.org/git/wine.git/?a=commit;h=71e2ab0ed3e18b5b6f521176803844c2aa1f5871
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Fri Jul 2 10:21:01 2021 +0200
dbghelp: Correctly initialize the module_pair structure in SymGetTypeFromName.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/type.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index 4b332b9106d..374b69aeb08 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -921,12 +921,12 @@ BOOL WINAPI SymGetTypeInfo(HANDLE hProcess, DWORD64 ModBase,
BOOL WINAPI SymGetTypeFromName(HANDLE hProcess, ULONG64 BaseOfDll,
PCSTR Name, PSYMBOL_INFO Symbol)
{
- struct process* pcs = process_find_by_handle(hProcess);
struct module_pair pair;
struct symt* type;
- if (!pcs) return FALSE;
- pair.requested = module_find_by_addr(pcs, BaseOfDll, DMT_UNKNOWN);
+ pair.pcs = process_find_by_handle(hProcess);
+ if (!pair.pcs) return FALSE;
+ pair.requested = module_find_by_addr(pair.pcs, BaseOfDll, DMT_UNKNOWN);
if (!module_get_debug(&pair)) return FALSE;
type = symt_find_type_by_name(pair.effective, SymTagNull, Name);
if (!type) return FALSE;
More information about the wine-cvs
mailing list