From f2fbf59246b6b67ca8a5528f5ebf3688235a7b7e Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Wed, 6 Oct 2021 10:01:54 +0200 Subject: [PATCH] dbghelp: Return lexical parent of SymTag(FuncDebugStart|FuncDebugEnd|Label) in SymGetTypeInfo(). Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- dlls/dbghelp/type.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c index b45e79e9946..4e322ea5364 100644 --- a/dlls/dbghelp/type.c +++ b/dlls/dbghelp/type.c @@ -761,6 +761,11 @@ BOOL symt_get_info(struct module* module, const struct symt* type, case SymTagThunk: X(DWORD) = symt_ptr2index(module, ((const struct symt_thunk*)type)->container); break; + case SymTagFuncDebugStart: + case SymTagFuncDebugEnd: + case SymTagLabel: + X(DWORD) = symt_ptr2index(module, ((const struct symt_hierarchy_point*)type)->parent); + break; case SymTagUDT: case SymTagEnum: case SymTagFunctionType: