dbghelp: When sending back information about a global symbol, only demangle the class & field/method name.

This commit is contained in:
Eric Pouech 2008-02-06 21:56:12 +01:00 committed by Alexandre Julliard
parent 43afc9178b
commit ee1a9af0ce

View File

@ -617,8 +617,8 @@ static void symt_fill_sym_info(const struct module_pair* pair,
if (sym_info->MaxNameLen)
{
if (sym->tag != SymTagPublicSymbol || !(dbghelp_options & SYMOPT_UNDNAME) ||
(sym_info->NameLen = UnDecorateSymbolName(name, sym_info->Name,
sym_info->MaxNameLen, UNDNAME_COMPLETE) == 0))
(sym_info->NameLen = UnDecorateSymbolName(name, sym_info->Name,
sym_info->MaxNameLen, UNDNAME_NAME_ONLY) == 0))
{
sym_info->NameLen = min(strlen(name), sym_info->MaxNameLen - 1);
memcpy(sym_info->Name, name, sym_info->NameLen);