Eric Pouech : dbghelp: Fix module on which GetTypeFromName is done.
Alexandre Julliard
julliard at winehq.org
Tue Dec 15 09:40:17 CST 2009
Module: wine
Branch: master
Commit: 07c1a1ca51b651a4b1ba4e8e5476e403b0560959
URL: http://source.winehq.org/git/wine.git/?a=commit;h=07c1a1ca51b651a4b1ba4e8e5476e403b0560959
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Mon Dec 14 22:05:40 2009 +0100
dbghelp: Fix module on which GetTypeFromName is done.
---
dlls/dbghelp/type.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index 3955815..b9f4a22 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -878,13 +878,13 @@ BOOL WINAPI SymGetTypeFromName(HANDLE hProcess, ULONG64 BaseOfDll,
PCSTR Name, PSYMBOL_INFO Symbol)
{
struct process* pcs = process_find_by_handle(hProcess);
- struct module* module;
+ struct module_pair pair;
struct symt* type;
if (!pcs) return FALSE;
- module = module_find_by_addr(pcs, BaseOfDll, DMT_UNKNOWN);
- if (!module) return FALSE;
- type = symt_find_type_by_name(module, SymTagNull, Name);
+ pair.requested = module_find_by_addr(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;
Symbol->TypeIndex = (DWORD)type;
More information about the wine-cvs
mailing list