dbghelp: Don't expose SymTagExe or SymTagCompiland's address nor length in SymGetTypeInfo().

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-10-06 10:00:41 +02:00 committed by Alexandre Julliard
parent 0f2f195831
commit 15d526d81e
1 changed files with 5 additions and 3 deletions

View File

@ -158,11 +158,11 @@ BOOL symt_get_address(const struct symt* type, ULONG64* addr)
case SymTagThunk:
*addr = ((const struct symt_thunk*)type)->address;
break;
case SymTagCompiland:
*addr = ((const struct symt_compiland*)type)->address;
break;
default:
FIXME("Unsupported sym-tag %s for get-address\n", symt_get_tag_str(type->tag));
/* fall through */
case SymTagExe:
case SymTagCompiland:
return FALSE;
}
return TRUE;
@ -689,6 +689,8 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
FIXME("Unsupported sym-tag %s for get-length\n",
symt_get_tag_str(type->tag));
/* fall through */
case SymTagExe:
case SymTagCompiland:
case SymTagFunctionType:
return FALSE;
}