Eric Pouech : dbghelp: Don't expose SymTagExe or SymTagCompiland's address nor length in SymGetTypeInfo().
Alexandre Julliard
julliard at winehq.org
Wed Oct 6 15:51:36 CDT 2021
Module: wine
Branch: master
Commit: 15d526d81ed2df1c36675b2426bea842150f5afb
URL: https://source.winehq.org/git/wine.git/?a=commit;h=15d526d81ed2df1c36675b2426bea842150f5afb
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Oct 6 10:00:41 2021 +0200
dbghelp: Don't expose SymTagExe or SymTagCompiland's address nor length in SymGetTypeInfo().
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/type.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/dbghelp/type.c b/dlls/dbghelp/type.c
index 70719cf6b7c..0baa9d72c32 100644
--- a/dlls/dbghelp/type.c
+++ b/dlls/dbghelp/type.c
@@ -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;
}
More information about the wine-cvs
mailing list